-
Notifications
You must be signed in to change notification settings - Fork 21
returnExistingNonce
Aidan Woods edited this page Jul 16, 2017
·
2 revisions
void returnExistingNonce ([ mixed $mode = true ] )Determine the behaviour of ->cspNonce and its aliases when
a nonce for the specified directive already exists.
When enabled, the existing nonce will be returned. When disabled, a new
nonce will be generated for the directive, added alongside the existing
one, and the new nonce will be returned.
If not explicitly set, the default mode for this setting is enabled.
Loosely casted to a boolean, true enables the behaviour, false
turns it off.