MediaWiki REL1_37
|
This is a hook handler interface, see docs/Hooks.md. 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. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ContentSecurityPolicyDirectives" to register handlers implementing this interface.
Definition at line 12 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.