Zend\Http\Header\ContentSecurityPolicy::setDirective
Sets the directive to consist of the source list
Reverses http://www.w3.org/TR/CSP/#parsing-1
Signature
public function setDirective(string
$name,
array
$sources )
Parameters
$name
— string- The directive name.
$sources
— array- The source list.
Returns
- self
Errors/Exceptions
-
InvalidArgumentException
- If the name is not a valid directive name.