Yoast / Yoast-SEO-for-TYPO3

Yoast SEO plugin for TYPO3
Other
51 stars 56 forks source link

V12 CSP errors #570

Open zkrechowiec opened 7 months ago

zkrechowiec commented 7 months ago

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?

lstephanws commented 5 months ago

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