MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onContentSecurityPolicyDefaultSource (&$defaultSrc, $policyConfig, $mode) | |
Use this hook to modify the allowed CSP load sources. | |
Stable to implement.
Definition at line 9 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 |
string | $mode | ContentSecurityPolicy::REPORT_ONLY_MODE or ContentSecurityPolicy::FULL_MODE depending on type of header |
Implemented in MediaWiki\HookContainer\HookRunner.