Skip to main content


Revert "[FEATURE] Add stdWrap to config.additionalHeaders"

This reverts commit b8151562dc70330f1adfaf4ca56765d6eadc59a6.

Reason for revert:
Adding stdWrap to TS top-level 'config' object gives
headaches with fully-cached page access.
ContentObjectRenderer is not available in this context,
so COR->stdWrap() fails.

Change-Id: I895ea267da31845660dd07b6f8cfe50d0c5cef69
Resolves: #99858
Related: #99340
Releases: main
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77583
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: Nikita Hovratov <nikita.h@live.de>
Reviewed-by: Nikita Hovratov <nikita.h@live.de>
Tested-by: Oliver Bartsch <bo@cedev.de>
Tested-by: core-ci <typo3@b13.com>
Reviewed-by: Christoph Lehmann <christoph.lehmann@networkteam.com>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christoph Lehmann <christoph.lehmann@networkteam.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>



[FEATURE] Add stdWrap to config.additionalHeaders

StdWrap properties have been added to the `header` directive in `config.additionalHeaders`.

It is now possible to sent dynamic HTTP headers with TypoScript, especially headers that contain paths to extension files.

Example:

config.additionalHeaders {
10 {
header = link: <{path : EXT:site/Resources/Public/Fonts/icon.woff2}>; rel=preload; as=font; crossorigin
header.insertData = 1
}
}

Resolves: #99340
Releases: main
Change-Id: I38e743910b8ae9db09c5d685fc8845d9411f01ae
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77019
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>