-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
- https://docs.typo3.org/other/typo3/view-helper-reference/main/en-us/Global/Security/Nonce.html
- https://review.typo3.org/c/Packages/TYPO3.CMS/+/92138
- for
v14.1.0andv13.4.23(not released yet)
Examples
<script nonce="{f:security.nonce(directive: 'script-src', scope: 'inline')}">
const test = true;
</script><script nonce="{f:security.nonce(directive: 'script-src', scope: 'static')}" src="{scriptUri}"></script>New Attributes
directivecan be one ofscript-src,script-src-elem,style-src,style-src-elemscopecan be eitherstaticorinline(default)
Hint
The {f:security.nonce()} view-helper is meant as a compatibility fallback. It is suggested to use more specific view-helpers like <f:asset.css> or <f:asset.script>.
Metadata
Metadata
Assignees
Labels
No labels