paragonie / csp-builder

Build Content-Security-Policy headers from a JSON file (or build them programmatically)
https://paragonie.com/projects
MIT License
544 stars 39 forks source link

Fix support for script-src-{elem|attr}, Add support for style-src-{elem|attr} #71

Closed internalsystemerror closed 1 year ago

internalsystemerror commented 1 year ago

Support for:

was added to close https://github.com/paragonie/csp-builder/issues/52. However this appears to have broken along the way.

This PR fixes the above, and also adds support for:

with tests updated appropriately.