Feature: Content Security Policy rules 

Description 

The extension now declares the Content Security Policy sources its frontend editing surface needs, in Configuration/ContentSecurityPolicies.php. Nothing has to be enabled for it: TYPO3 picks the file up automatically for every installation that has frontend CSP switched on, and installations that have not are unaffected.

Frontend CSP is off by default in TYPO3 v13 and v14. A site enables it either with a feature flag:

config/system/additional.php
$GLOBALS['TYPO3_CONF_VARS']['SYS']['features']['security.frontend.enforceContentSecurityPolicy'] = true;
Copied!

or, without any feature flag, per site:

config/sites/<identifier>/csp.yaml
enforce: true
Copied!

What is declared 

Four directives, each granting only the site's own origin:

Directive Needed for
script-src 'self' The editing module, loaded through the TYPO3 import map.
style-src 'self' The stylesheet of the editing surface.
connect-src 'self' The fetch() requests to the editing endpoints.
img-src 'self' Profile images, served from the file storage.

Nothing is loaded from an external origin, and no directive that would weaken a policy is requested — in particular no 'unsafe-inline', no 'unsafe-eval', and no data: or blob: image sources.

Under the policy TYPO3 itself ships for the frontend, these four add almost nothing to the emitted header, because they permit what default-src 'self' already permits. They matter on an installation that narrows default-src, where they are what keeps the editing surface working.

Switching it off or changing it 

To keep the policy of every other extension but drop this one, name the composer package in the site's csp.yaml:

config/sites/<identifier>/csp.yaml
enforce:
  packages:
    '*': true
    sbuerk/modern-extbase-frontend-edit: false
Copied!

To disable Content Security Policy for a site entirely:

config/sites/<identifier>/csp.yaml
active: false
Copied!

The full set of options — reporting, per site mutations, and the csp.yaml format — is described in the TYPO3 documentation: Content Security Policy.