MediaWiki  master
ContentSecurityPolicyScriptSourceHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Hook;
4 
26  public function onContentSecurityPolicyScriptSource( &$scriptSrc,
27  $policyConfig, $mode
28  );
29 }
This is a hook handler interface, see docs/Hooks.md.
onContentSecurityPolicyScriptSource(&$scriptSrc, $policyConfig, $mode)
Use this hook to modify the allowed CSP script sources.