• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Question Ajax request in plesk plugin

Muneeb

New Pleskian
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-&gt;preDispatch(Object(Zend_Controller_Request_Http))<br />
#1 /usr/local/psa/admin/externals/Zend/Controller/Front.php(941): Zend_Controller_Plugin_Broker-&gt;preDispatch(Object(Zend_Controller_Request_Http))<br />
#2 /usr/local/psa/admin/plib/pm/Application.php(99): Zend_Controller_Front-&gt;dispatch()<br />
#3 /usr/local/psa/admin/htdocs/modules/rblcheckmaster/index.php(6): pm_Application-&gt;run()<br />
#4 &#123;main&#125; (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 .
 
Back
Top