Review main Merged

77946[TASK] Add HTTP security headers for backend by default

Torben Hansen CR +2 V +2 Easy +42 −0 updated 03/02/23, 11:23

Commit message

The TYPO3 backend currently adds a `X-Frame-Options: SAMEORIGIN`
HTTP security header to prevent clickjacking attacks. It is however
possible to use several other HTTP security headers for TYPO3 backend
requests as well.

This change adds the following HTTP security headers by default
for TYPO3 backend requests:

* `Strict-Transport-Security: max-age=31536000` (only if
  :php:`$GLOBALS[TYPO3_CONF_VARS][BE][lockSSL]` is active)
* `X-Content-Type-Options: nosniff`
* `Referrer-Policy: strict-origin-when-cross-origin`

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 3