Forum
Ace Editor - Region save error
I've been building a new template and one of the content fields is using Ace Editor for the nice syntax highlighting.
Using the field to embed a video from Facebook or Youtube etc, is causing an error when the Region is saved. The content does save and appears as expected on the page itself, but the actual save process ends up on a blank page instead of reloading the admin.
Chrome inspector shows this error:
The XSS Auditor blocked access to 'https://mydomain.com/perch/core/apps/content/edit/?id=3726&itm=3616' because the source code of a script was found within the request. The server sent an 'X-XSS-Protection' header requesting this behavior.
I get the same blank page in Safari.
Perch and Apps are all up to date. Are you able to replicate this behaviour on your end?
We need to see your Diagnostics Report and template with each forum post - thanks!
Diagnostics:
Let me know if you want the extended diagnostics.
The actual template is quite large so I've pulled the embed field out to test it on it's own, still getting the same result when it's the only content field in the region:
In your
config/config.php
file, add:Thanks Drew.
Still got the same result after adding that line.
I've now resolved the issue - turned out it was caused by debug mode (I'm working on our development server so debug is on). Disabling debug makes the Region save as normal; disabling security headers has no effect regardless of debug.
Thanks for your help!