Can’t Save Widget get a 403 error on admin-ajax.php
-
Hello,
Wanted to share an issue I came across when trying to save the Widget on our new host.
When I tried to save it gave me a 403 error on admin-ajax.php in the js Console;
POST https://listelhotel.com/wp-admin/admin-ajax.php 403 ()
(anonymous) @ VM280:2
send @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:4
ajax @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:4
n.(anonymous function) @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:4
save @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,jquery-ui-position,wp-pointer,jquery-ui-dr…:38
(anonymous) @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,jquery-ui-position,wp-pointer,jquery-ui-dr…:38
dispatch @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:3
r.handle @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:3To workaround this issue I disabled ModSecurity through cPanel temporarily which allowed me to save without issue.
I’ve opened a ticket with my host to see if they can determine if ModSecurity rules need updating or if there’s anything that can be done through the plugin to avoid this issue. When I get a response will update this thread.
All the best,
Cheers
- The topic ‘Can’t Save Widget get a 403 error on admin-ajax.php’ is closed to new replies.