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

This ViewHelper resolves the `nonce` attribute from the global server request object, or from the `PolicyProvider` service as a fall-back value.

Examples

Basic usage

::

<script nonce="{f:security.nonce()}">const inline = 'script';</script>

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