We recently migrated our application from http to https because of simple password logins via the API.
However, since we are making real problems with Blackholes. The cake seems like a black hole to any POST for the API function inside our controller, despite
$this->Security->validatePost = false;
installed in AppController.php
We are using CakePHP version 2.1.3
Sample code is as follows:
AppController.php:
function beforeFilter() { $this->Security->validatePost = false; $this->Security->requireSecure(); }
SaleOrderController.php:
function beforeFilter() { parent::beforeFilter(); $this->Auth->allow('addApi');
POSTing to this URL returns the following message: "The request was black"
As soon as we can get this work (without being crossed out), we will configure it so that only certain actions are performed using validatePost = false. However, for now, we just want the system to work.
Note. GET requests to action work fine (not crossed out).
Am I missing some simple configuration here or is there some deeper problem at work? The security module seems a bit meager in the documentation, and from my Google searches, it seems like most people avoided blackworms by following the same steps that I have.
source share