Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Piwik/GA inline script requires CSP "unsafe-inline" #245

Open
@thomaszbz

Description

@thomaszbz

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions