NonceViewHelper extends AbstractViewHelper

ViewHelper

This class is the implementation of a Fluid ViewHelper.

View this class in the TYPO3 ViewHelper reference: <f:security.nonce>

FinalYes

ViewHelper to retrieve (and consume) a `nonce` attribute from the global server request object pool, or from the `PolicyProvider` service as a fall-back value.

  <script nonce="{f:security.nonce()}">const inline = 'script';</script>
Tags
see
https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-security-nonce
see
https://docs.typo3.org/permalink/t3coreapi:content-security-policy
see
PolicyProvider

Table of Contents

Methods

__construct()  : mixed
initializeArguments()  : void
render()  : string

Methods

initializeArguments()

public initializeArguments() : void

render()

public render() : string
Return values
string

        
On this page

Search results