MediaWiki REL1_39
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onContentSecurityPolicyDefaultSource (&$defaultSrc, $policyConfig, $mode) | |
Use this hook to modify the allowed CSP load sources. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ContentSecurityPolicyDefaultSource" to register handlers implementing this interface.
Definition at line 12 of file ContentSecurityPolicyDefaultSourceHook.php.
MediaWiki\Hook\ContentSecurityPolicyDefaultSourceHook::onContentSecurityPolicyDefaultSource | ( | & | $defaultSrc, |
$policyConfig, | |||
$mode ) |
Use this hook to modify the allowed CSP load sources.
This affects all directives except for the script directive. To add a script source, see ContentSecurityPolicyScriptSource hook.
string[] | &$defaultSrc | Array of Content-Security-Policy allowed sources |
array | $policyConfig | Current configuration for the Content-Security-Policy header |
int | $mode | ContentSecurityPolicy::REPORT_ONLY_MODE or ContentSecurityPolicy::FULL_MODE depending on type of header |
Implemented in MediaWiki\HookContainer\HookRunner.