Skip to content

Comments

feat: add option to add nonce to style-src directive#81

Open
codepunkt wants to merge 5 commits intonetlify:mainfrom
codepunkt:style-src
Open

feat: add option to add nonce to style-src directive#81
codepunkt wants to merge 5 commits intonetlify:mainfrom
codepunkt:style-src

Conversation

@codepunkt
Copy link

This adds the option to add the generated nonce to the style-src directive and add the nonce attribute to style-related elements.

Let me know what you think!

@netlify
Copy link

netlify bot commented Jul 6, 2024

‼️ Deploy request for csp-nonce rejected.

Name Link
🔨 Latest commit 0c88410

@codepunkt codepunkt changed the title Add option to add nonce to style-src directive feat: add option to add nonce to style-src directive Jul 6, 2024
@delpiersos
Copy link

Wondering why this hasn't been merged? Missing the nonce option for style-src is a valuable addition for this.

@josh-respondology
Copy link

Bump? Having style-src is definitely needed.

@JakeChampion
Copy link
Contributor

Apologies for not seeing this sooner, we ended up moving the actual csp logic into a library which the plugin and extension make use of - the style-src work would need to land in that library and then we could update the library version used in this plugin -- https://github.com/netlify/csp_nonce_html_transformer

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.

4 participants