You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you add a Content-Security-Policy (CSP) Header, that does not allow 'unsafe-inline' for script-src, the whole backend will not work as expected. Content in the preview iframe can not be selected nor changed. Changing the language / dimension has no effect (no reload). Navigating through the page tree works as expected.
This is because Neos uses a lot of inline scripts to handle the nodedata required for inline editing and other stoff, so blocking inline scripts will prevent most of the Neos parts from working.
Expected Behavior
Neos provides an easy way to create and retrieve a nonce for the current request. The nonce will be the same for all inline-scripts so a developer can easily add a 'nonce-<unique-value>' to the response. There is no problem in using the same nonce multiple times as long as it changes for each new request/response.
Steps To Reproduce
Add a CSP header to your html response, sth like this:
thanks for reporting this. We should definitely make it possible for the UI to work in stricter CSP environments (though my guess would be that there's gonna be a limit to that somewhere due to the very presence of inter-frame communication).
I have transferred your issue over to the UI repository, because this is where it needs to be fixed.
Is there an existing issue for this?
Current Behavior
If you add a Content-Security-Policy (CSP) Header, that does not allow
'unsafe-inline'
forscript-src
, the whole backend will not work as expected. Content in the preview iframe can not be selected nor changed. Changing the language / dimension has no effect (no reload). Navigating through the page tree works as expected.This is because Neos uses a lot of inline scripts to handle the nodedata required for inline editing and other stoff, so blocking inline scripts will prevent most of the Neos parts from working.
Expected Behavior
Neos provides an easy way to create and retrieve a
nonce
for the current request. The nonce will be the same for all inline-scripts so a developer can easily add a'nonce-<unique-value>'
to the response. There is no problem in using the same nonce multiple times as long as it changes for each new request/response.Steps To Reproduce
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: