I was developing a plesk plugin which infact using zend framework . In that i am making an ajax request as follows :
new Ajax.Request('<?php echo $this->checkStatusAction; ?>', {
method: 'post',
parameters: {param1: value1, param2: value2},
onSuccess: function (transport) {
try {
var response = JSON.parse(transport.responseText);
$('#model_filledRB').html(transport);
} catch (e) {
failedRequest(domain);
return;
}
},
onFailure: function () {
failedRequest(domain);
}
});
But it giving me error as follows :
ERROR: Zend_Controller_Exception: Permission denied.#0 /usr/local/psa/admin/externals/Zend/Controller/Plugin/Broker.php(309): Plesk\Application\Controller\Plugin\ForgeryProtection->preDispatch(Object(Zend_Controller_Request_Http))<br />
#1 /usr/local/psa/admin/externals/Zend/Controller/Front.php(941): Zend_Controller_Plugin_Broker->preDispatch(Object(Zend_Controller_Request_Http))<br />
#2 /usr/local/psa/admin/plib/pm/Application.php(99): Zend_Controller_Front->dispatch()<br />
#3 /usr/local/psa/admin/htdocs/modules/rblcheckmaster/index.php(6): pm_Application->run()<br />
#4 {main} (Broker.php:312)<br />
<br><a href='Plesk Help Center' target='_blank'>Search for related Knowledge Base articles</a>
Is this a zend issue ? Or how could i resolve this ? Thanks .
new Ajax.Request('<?php echo $this->checkStatusAction; ?>', {
method: 'post',
parameters: {param1: value1, param2: value2},
onSuccess: function (transport) {
try {
var response = JSON.parse(transport.responseText);
$('#model_filledRB').html(transport);
} catch (e) {
failedRequest(domain);
return;
}
},
onFailure: function () {
failedRequest(domain);
}
});
But it giving me error as follows :
ERROR: Zend_Controller_Exception: Permission denied.#0 /usr/local/psa/admin/externals/Zend/Controller/Plugin/Broker.php(309): Plesk\Application\Controller\Plugin\ForgeryProtection->preDispatch(Object(Zend_Controller_Request_Http))<br />
#1 /usr/local/psa/admin/externals/Zend/Controller/Front.php(941): Zend_Controller_Plugin_Broker->preDispatch(Object(Zend_Controller_Request_Http))<br />
#2 /usr/local/psa/admin/plib/pm/Application.php(99): Zend_Controller_Front->dispatch()<br />
#3 /usr/local/psa/admin/htdocs/modules/rblcheckmaster/index.php(6): pm_Application->run()<br />
#4 {main} (Broker.php:312)<br />
<br><a href='Plesk Help Center' target='_blank'>Search for related Knowledge Base articles</a>
Is this a zend issue ? Or how could i resolve this ? Thanks .