Piwik/GA inline script requires CSP "unsafe-inline" #245
Description
When Content-Security-Policy (CSP) is used (via webserver config) with a http header Content-Security-Policy
, then we get a problem with the inline javascripts for Piwik/Google Analytics integration:
To not block the piwik javascript via CSP (in the frontend), the CSP header must be set together with script-src 'unsafe-inline'
. This works fine, however is it considered unsafe.
As of TYPO3 6.2, this is not an issue in practice, because the TYPO3 backend is even worse (requires unsafe-eval
). But as soon as the backend does not require 'unsafe-inline'
any more, we should not require it either in metaseo.
This issue could still be relevant already (as of 6.2) if only the frontend counts (e.g. if the backend is not accessible or CSP-configured separately).