[FEATURE] Add crossorigin property to JavaScript files
Add a property 'crossorigin="some-value"' to JavaScript files via TypoScript page.includeJSlibs.<array>.crossorigin = some-value The crossorigin property is automatically set to the value "anonymous" for external JavaScript files with an integrity property if not explicitly set. This patch affects the TypoScript PAGE properties * includeJSlibs * includeJSFooterlibs * includeJS * includeJSFooter Resolves: #76459 Releases: master Change-Id: Ie8d1d86ca5a8863c2a637395f1f87a463729691c Reviewed-on: https://review.typo3.org/48455 Reviewed-by:Benni Mack <benni@typo3.org> Tested-by:
Benni Mack <benni@typo3.org> Tested-by:
TYPO3com <no-reply@typo3.com> Reviewed-by:
Stefan Neufeind <typo3.neufeind@speedpartner.de> Tested-by:
Stefan Neufeind <typo3.neufeind@speedpartner.de>
Showing
- typo3/sysext/core/Classes/Page/PageRenderer.php 18 additions, 8 deletionstypo3/sysext/core/Classes/Page/PageRenderer.php
- typo3/sysext/core/Documentation/Changelog/master/Feature-76459-AddCrossoriginPropertyToJavaScriptFiles.rst 43 additions, 0 deletions...Feature-76459-AddCrossoriginPropertyToJavaScriptFiles.rst
- typo3/sysext/frontend/Classes/Page/PageGenerator.php 24 additions, 5 deletionstypo3/sysext/frontend/Classes/Page/PageGenerator.php
Please register or sign in to comment