PHP Class Neos\FluidAdaptor\ViewHelpers\Security\CsrfTokenViewHelper

..). Note: You won't need this ViewHelper if you use the Form ViewHelper, because that creates a hidden field with the CSRF token for unsafe requests automatically. This ViewHelper is mainly useful in conjunction with AJAX. = Examples =
...
Now, the CSRF token can be extracted via JavaScript to be appended to requests, for example with jQuery: jQuery (exemplary): $.ajax({ url: '', type: 'POST', data: { __csrfToken: $('#someDiv').attr('data-csrf-token') } });
Inheritance: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper
Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство Type Description
$securityContext Neos\Flow\Security\Context

Méthodes publiques

Méthode Description
render ( ) : string

Method Details

render() public méthode

public render ( ) : string
Résultat string

Property Details

$securityContext protected_oe property

protected Context,Neos\Flow\Security $securityContext
Résultat Neos\Flow\Security\Context