Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CFEditor causes CSP errors #3395

Open
tarjei opened this issue Apr 9, 2024 · 0 comments
Open

CFEditor causes CSP errors #3395

tarjei opened this issue Apr 9, 2024 · 0 comments

Comments

@tarjei
Copy link
Contributor

tarjei commented Apr 9, 2024

If you configure your server (nginx) with:

add_header Content-Security-Policy "script-src 'self' https: 'unsafe-eval'";

Then you will get the following error after upgrading to 6.4:

Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'interest-cohort'.
admin-bundle.min.js:30 Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "default-src 'self' http: https: ws: wss: data: blob: 'unsafe-inline'".

    at Function (<anonymous>)
    at new CKEDITOR.template (admin-bundle.min.js:30:18389)
    at admin-bundle.min.js:33:7044
    at admin-bundle.min.js:33:7304
    at admin-bundle.min.js:33:10095
    at admin-bundle.min.js:43:5038
CKEDITOR.template @ admin-bundle.min.js:30
(anonymous) @ admin-bundle.min.js:33
(anonymous) @ admin-bundle.min.js:33
(anonymous) @ admin-bundle.min.js:33
(anonymous) @ admin-bundle.min.js:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant