Piwik\View\
Content Security Policy HTTP Header management class
The class defines the following methods:
addPolicy()
— Appends a policy to a directive.removeDirective()
— Removes a directive.overridePolicy()
— Overrides a directive.disable()
— Disable CSPallowEmbedPage()
— A less restrictive CSP which will allow embedding other sites with iframes (useful for heatmaps and session recordings)addPolicy()
Appends a policy to a directive.
It accepts the following parameter(s):
$directive
$value
It does not return anything or a mixed result.
removeDirective()
Removes a directive.
It accepts the following parameter(s):
$directive
It does not return anything or a mixed result.
overridePolicy()
Overrides a directive.
It accepts the following parameter(s):
$directive
$value
It does not return anything or a mixed result.
disable()
Disable CSP
allowEmbedPage()
A less restrictive CSP which will allow embedding other sites with iframes (useful for heatmaps and session recordings)