I encountered an Error while working on client’s website.
Everything was working fine, but suddenly on CPT page for Services I started getting 403 Errors when I tried to change icon in the card and save the progress. The page started displaying the errors for couple minutes, saving was loading forever, and changes did not appear on the frontend.
You can see example of the problem in the video attached above.
Eventually error stopped, but when I tried to do it again, the same thing happened.
I tested it on 3 different browsers: Brave / Safari / Firefox Developer.
I cleaned cache multiple times, looked for solution but didn’t find one yet.
We contacted hosting provider, but I thought that perhaps someone here would know how to tackle this problem.
I had the same issue and in my case the 403 error was not coming from Bricks itself but from Wordfence on the main production site.
My staging site was located inside the main site’s /public_html/staging folder, so the firewall from the production site was also protecting (and blocking) requests in the staging folder.
What worked for me:
On the main site, set Wordfence to Learning Mode. (I kept Wordfence disabled on the staging site, since the main site’s firewall already covers it.)
Save the template in the staging installation.
Switch Wordfence back to Enabled and Protecting on the main site.
After that, saving templates in staging worked fine.
It’s also worth mentioning that the initial post on this thread, Lazevsky mentios that the 403 issue was triggered when changing an icon, especially if the icon contains an inline SVG embedded as code. Wordfence (and sometimes ModSecurity) tends to flag those AJAX requests as suspicious and blocks them with a 403.