Releases: paragonie/csp-builder
Version 2.2.0
- Add dedicated API method for setting
report-to
/report-uri
directives. - Add support for
'strict-dynamic'
and'unsafe-hashed-attributes'
Version 1.4.0
Contains a year of bugfixes and tweaks from the v2 branch, backported for PHP 5 support.
Version 2.1.0
- Added several helper methods, e.g.
setDataAllowed()
andsetSelfAllowed()
, for programatically allowingself
anddata:
URIs for a specific directive. - CSP-Builder is now type-safe! This can be verified by Psalm. In future releases, this will be enforced by Travis CI.
- Docblock and unit test cleanup.
Version 2.0.1
Allow CSPBuilder instances to be instantiated from a JSON string. Thanks @renanmpimentel
Version 1.3.3
Version 1.3.2 broke somewhere in the git chain, so v1.3.3 it is.
Version 2.0.0
Version 2.0.0 requires PHP 7.
This allows us to use strict typing and drop random_compat as a dependency.
Version 1.3.1
- Minor (some annoying) bug fixes
- Fix whitespace in
unsafe-eval
directives
Full list here: v1.3.0...v1.3.1
Version 1.3.0
A lot of bugfixes since 1.2.0.
BC break: Changed our erroneous connect-uri
and font-uri
directives to connect-src
and font-src
respectively.
Before version 1.4, I'd like to improve the documentation and unit test coverage. Feel free to open any issues for bugs you encounter or feature requests you might have.
Version 1.2.4
Use normal Base64 encoding for CSP hashes.
Version 1.2.3
It turns out that the hash directive just needs to be sha256-blah
not hash-sha256-blah
.