Yoast/Yoast-SEO-for-TYPO3

V12 CSP errors

zkrechowiec opened this issue · 1 comments

Hello, I use TYPO3 v12.4.13 with a version of yoast 9.0.3.
The loading is looping and when looking at the console, we have csp errors:
"Refused to apply inline style because it violates the following Content Security Policy directive: "style-src-elem 'self' 'unsafe-inline' 'nonce-gKLTCjjwx0amlbW5SIdzUeqA4wisfOO-B1b-cjOzYEsyCUjg2w44Bg'"
In v12, backend csp can be generated from a module but this cannot be processed. Has anyone had this problem and have a solution?

Hello,
For my part, the problem can be solved by desactivating this conf :
$GLOBALS['TYPO3_CONF_VARS']['SYS']['features']['security.backend.enforceContentSecurityPolicy'] = false;
Best regards