Skip to content

CSP: Document if scope is necessary #6080

@cweiske

Description

@cweiske

Current behavior

The "Content Security Policy" documentation at https://docs.typo3.org/m/typo3/reference-coreapi/13.4/en-us/ApiOverview/ContentSecurityPolicy/Index.html#content-security-policy-extension mentions that I can pass a scope in my ContentSecurityPolicies.php file:

Additionally, a Scope instance object is included, which can either be Scope::backend() or Scope::frontend().

It's not clear if I can omit the scope (to modify the policy for both frontend+backend).

Expected behavior/output

The documentation says that I have to add a scope, or says that I can omit the scope.

TYPO3 versions

13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions