r/elementor • u/JackTasak • 20d ago
Tips [FIX] Elementor Global Classes not saving or working? Check your hosting's WAF / ModSecurity (403 Forbidden Error)
Quick tip for anyone tearing their hair out over Global Classes not saving or not working properly in recent Elementor versions.
The Symptoms:
You try to add or edit Global Classes, but nothing saves, or closing the panel throws an error / gets canceled.
Classes are working in editor, but nothing works on published site.
Step 1: Check your browser DevTools (F12 -> Console)
Look at the network calls when interacting with classes. You'll likely spot:
- Failed to load resource: the server responded with a status of 403 () on /wp-json/elementor/v1/global-classes?context=frontend
- AxiosError: Request failed with status code 403
- Close document has been canceled.
Step 2: Why it happens
If you expand the error response body and see raw HTML markup (<html><head><title>403 Forbidden</title>...), it means your web server/firewall is blocking the request before WordPress even sees it (WordPress returns JSON on auth errors, not raw HTML). Server firewalls often flag CSS/class payloads sent via REST API as false-positive XSS or injection attempts.
Step 3: The Fix
- Log in to your hosting panel (cPanel, DirectAdmin, etc.).
- Locate your WAF (Web Application Firewall) or ModSecurity settings.
- Lower the protection level or temporarily turn it off to test.
- Hard-refresh your Elementor editor (Ctrl + F5). Classes should immediately start saving.
Tip: Once confirmed, you can reach out to your hosting support and ask them to whitelist the /wp-json/elementor/v1/global-classes endpoint so you can keep the firewall active.
Hope this saves someone a few hours of troubleshooting!
ā¢
u/[deleted] 20d ago
[removed] ā view removed comment
1
u/Josherry 20d ago
Thanks for the info. Iām assuming this is for the V4 Atomic Editor right