MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onContentSecurityPolicyDirectives (&$directives, $policyConfig, $mode) | |
If ContentSecurityPolicyDefaultSource and ContentSecurityPolicyScriptSource do not meet your needs, use this hook to modify the content security policy directives. | |
Stable to implement.
Definition at line 9 of file ContentSecurityPolicyDirectivesHook.php.
MediaWiki\Hook\ContentSecurityPolicyDirectivesHook::onContentSecurityPolicyDirectives | ( | & | $directives, |
$policyConfig, | |||
$mode | |||
) |
If ContentSecurityPolicyDefaultSource and ContentSecurityPolicyScriptSource do not meet your needs, use this hook to modify the content security policy directives.
string[] | &$directives | Array of CSP directives |
array | $policyConfig | Current configuration for the CSP header |
string | $mode | ContentSecurityPolicy::REPORT_ONLY_MODE or ContentSecurityPolicy::FULL_MODE depending on type of header |
Implemented in MediaWiki\HookContainer\HookRunner.