I am trying to make an AJAX call within my plugin and receive the following error.
=====
HTTP error 403
cgi/Tcs/Controller/LogsController.php
WHM is configured to disallow execution of unregistered applications when logged in as root or a reseller with the "all" ACL. To enable this functionality you must do one of the following: Register this addon with the /usr/local/cpanel/bin/register_appconfig script (Guide to WHM Plugins - The AppConfig System - Developer Documentation - cPanel Documentation), Enable the "Allow apps that have not registered with AppConfig to be run when logged in as root or a reseller with the "all" ACL in WHM" option in "Tweak Settings", or add permit_unregistered_apps_as_root=1 to the /var/cpanel/cpanel.config file, and run the /usr/local/cpanel/etc/init/startcpsrvd script.
=====
Since this is a public plugin the Tweak Settings or cpanel.config file options are really not an option. (don't want to have to ask users to jump through hoops to use plugin)
The plugin is registered with appconfig. This is the config file.
I've tried using a csfr token in the AJAX call, but haven't been able to get that to work.
Anybody have any insight here?
Thanks.
=====
HTTP error 403
cgi/Tcs/Controller/LogsController.php
WHM is configured to disallow execution of unregistered applications when logged in as root or a reseller with the "all" ACL. To enable this functionality you must do one of the following: Register this addon with the /usr/local/cpanel/bin/register_appconfig script (Guide to WHM Plugins - The AppConfig System - Developer Documentation - cPanel Documentation), Enable the "Allow apps that have not registered with AppConfig to be run when logged in as root or a reseller with the "all" ACL in WHM" option in "Tweak Settings", or add permit_unregistered_apps_as_root=1 to the /var/cpanel/cpanel.config file, and run the /usr/local/cpanel/etc/init/startcpsrvd script.
=====
Since this is a public plugin the Tweak Settings or cpanel.config file options are really not an option. (don't want to have to ask users to jump through hoops to use plugin)
The plugin is registered with appconfig. This is the config file.
Code:
#The service in which to serve the application: cpanel - cPanel, whostmgr - WHM, webmail - Webmail
service=whostmgr
#whm url
entryurl=xyz/index.php
#app location
url=/cgi/xyz/index.php
acls=any
displayname=XYZ Services
icon=xyz.png
target=_self
name=XYZ-WHM-Plugin
Anybody have any insight here?
Thanks.