Download the PHP package waughj/content-security-policy without Composer
On this page you can find all versions of the php package waughj/content-security-policy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download waughj/content-security-policy
More information about waughj/content-security-policy
Files in waughj/content-security-policy
Download waughj/content-security-policy
More information about waughj/content-security-policy
Files in waughj/content-security-policy
Vendor waughj
Package content-security-policy
Short Description Class for easy generation o’ Content Security Policy header.
License GPL-3.0-or-later
Package content-security-policy
Short Description Class for easy generation o’ Content Security Policy header.
License GPL-3.0-or-later
Keywords cspcontent security policy
Please rate this library. Is it a good library?
Informations about the package content-security-policy
Content Security Policy
Class for easy generation o’ Content Security Policy header.
Example
use WaughJ\ContentSecurityPolicy\ContentSecurityPolicy;
ContentSecurityPolicy::setPolicies
([
'default-src' => [ "'self'" ],
'style-src' => [ "'self'", "fonts.googleapis.com", "'unsafe-inline'" ],
'script-src' => [ "'self'", "*.google-analytics.com", "*.googletagmanager.com", "'unsafe-inline'" ],
'font-src' => [ "'self'", "fonts.gstatic.com" ],
'img-src' => [ "'self'", "*.google-analytics.com" ],
'script-src-elem' => [ "'self'", "*.google-analytics.com", "*.googletagmanager.com", "'unsafe-inline'" ]
]);
Changelog
1.0.0
- Remake & simplify
All versions of content-security-policy with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
The package waughj/content-security-policy contains the following files
Loading the files please wait ....