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

Content Security Policy #27

Open
morange opened this issue May 16, 2024 · 2 comments
Open

Content Security Policy #27

morange opened this issue May 16, 2024 · 2 comments

Comments

@morange
Copy link

morange commented May 16, 2024

There are also problems in TYPO3 v12.4 with the Content Security Policy in Front- and Backend.

@maikschneider
Copy link
Owner

Frontend: The default frontend template uses inline JS and CSS. This template is meant to be an example and needs adjustments to the specific requirements. So shipping a dedicated JS and CSS file is overkill since it musst be removed/replaced in any case. I'm pretty sure that users that activate the frontend CSP face enough problems to figure this out.

Backend: Yes, there is inline CSS in one template. However, I do not run into any problems - maybe because it's loaded via AJAX. Could you please paste the error log?

@morange
Copy link
Author

morange commented May 17, 2024

Hej,
after moving the CSS and JS inline code to external files, only the JS problem remains. This means that the descriptions of the respective element are not displayed. I have actived the csp rules.
That is the error message in the console log:
Uncaught SyntaxError: redeclaration of const rects <anonymous> https://doku.muldenland.ddev.site/willkommen/allgemeines?ADMCMD_simUser=2#c184:1193 [allgemeines:1193:9](https://doku.muldenland.ddev.site/willkommen/allgemeines?ADMCMD_simUser=2#c184) Uncaught SyntaxError: redeclaration of const rects <anonymous> https://doku.muldenland.ddev.site/willkommen/allgemeines?ADMCMD_simUser=2#c184:1347

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

2 participants