Closed MadCat34 closed 5 years ago
Provide a narrative description of what you are trying to accomplish:
Some directives are missing in Fetch directive
And some Navigation, Document and Reporting directives are missing.
$csp = new ContentSecurityPolicy(); $csp->setDirective('worker-src', ['https://*.google.com', 'http://foo.com']); $csp->toString();
Throw a Exception\InvalidArgumentException
toString() should return "Content-Security-Policy: worker-src https://*.google.com http://foo.com;"
This PR fixes #163
Thanks, @MadCat34!
Thanks, @michalbundyra
Provide a narrative description of what you are trying to accomplish:
Some directives are missing in Fetch directive
And some Navigation, Document and Reporting directives are missing.
Code to reproduce the issue
Actual result
Throw a Exception\InvalidArgumentException
New result
toString() should return "Content-Security-Policy: worker-src https://*.google.com http://foo.com;"
This PR fixes #163