Skip to content

removeCSPSource

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

Description

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

Remove a previously added source from a CSP directive.

Parameters

directive

The directive (case insensitive) in which the source to be removed resides.

source

The source (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