Skip to content

removeCSPDirective

Aidan Woods edited this page Jul 16, 2017 · 2 revisions

Description

void removeCSPDirective (
    string $directive 
    [, mixed $reportOnly = null ] 
)

Remove a previously added directive from CSP.

Parameters

directive

The directive (case insensitive) to remove.

reportOnly

Loosely casted as a boolean, true ensures the function acts on the report only policy, false (the default, as null casts to false) ensures the function acts on the enforced policy.

Clone this wiki locally