Review 13.4 Merged

89445[TASK] Apply CSP sandbox mode to fileadmin's .htaccess configuration

Oliver Hader CR +2 V +2 Normal +56 −2 updated 05/19/25, 13:20

Commit message

The directive `Content-Security-Policy: sandbox;` restricts
several client-side actions for files that may contain markup
(e.g., HTML, SVG):

* Disallows downloads
* Disallows form submissions
* Disallows modals and popups
* Disallows orientation and pointer lock
* Disallows presentation sessions
* Disallows navigation of the top-level browsing context

This applies only to resources located in the default file storage
location (e.g., `/fileadmin/`). Rendering Fluid templates from a
different location within the CMS application uses TYPO3's dynamic
CSP feature instead.

This change is considered a hardening and prevention measure.

Review

  • Code review CR +2 Done
    • Oliver Hader +2
  • Verified V +2 Done
    • Oliver Hader +2
    • core-ci +1 CI

Issues 1

Files 2

Review log 34

  1. Oliver Hader uploaded patch set 1 05/19/25, 12:22

  2. core-ci voted on patch set 1 V +1 05/19/25, 12:28 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/79161

  3. Oliver Hader voted on patch set 1 CR +2 V +2 05/19/25, 13:19

  4. Oliver Hader merged patch set 2 05/19/25, 13:20