| File: | 
??? | 
 
| Role: | 
Class source | 
 
| Content typex: | 
text/plain | 
 
| Description: | 
CSPGenerator class | 
 
| Class: | 
PHP Content Security Policy generator 
Generate CSP headers to prevent security attacks | 
 
| Author: | 
By Tom Postma | 
 
|  Last change: | 
Added example with use of require-sri-for directive. 
Fixed removed double require-sri-for directive. 
 
Signed-off-by: Tom <[email protected]> 
Merge branch 'master' of github.com:D9ping/CSPGenerator 
 
# Conflicts: 
#	CSPGenerator.php 
Added setReportConsent option for enabling the reportTo directive which is now disabled by default. 
 
Signed-off-by: Tom <[email protected]> 
added worker-src directive, decreate child-src directive. 
 
update copyright notice, improved codestyle, update code documentation 
 
Signed-off-by: Tom <[email protected]> 
Renamed reporturi to reportto directive. 
 
Signed-off-by: Tom <[email protected]> 
Added support for sending the Referrer-Policy http header base on the current referrerpolicy value and added strict-origin-when-cross-origin and strict-origin values. 
 
Signed-off-by: Tom <[email protected]> 
stop using reflected-xss directive from chrome 54 because of unrecognized directive(not yet implemented)console errors. 
 
Signed-off-by: Tom <[email protected]> 
 | 
 
| Date: | 
7 years ago | 
 
| Size: | 
45,320 bytes | 
 
 | 
 
 
 | 
 |