• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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