Skip to content

feat: Add granular nonces#10053

Draft
patel-vansh wants to merge 1 commit intocodeigniter4:4.8from
patel-vansh:feat/granular-nonces
Draft

feat: Add granular nonces#10053
patel-vansh wants to merge 1 commit intocodeigniter4:4.8from
patel-vansh:feat/granular-nonces

Conversation

@patel-vansh
Copy link
Contributor

Description
This PR adds ability to have more control over whether to add nonces on style-src, style-src-elem, script-src and script-src-elem individually by introducing two new boolean variables in CSP config.

I am not sure this is the optimal solution for this feature, that's why I've made this draft PR for others to look at the implementation and provide necessary changes. That's why I haven't still updated the user guide or changelog.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant