Skip to content

Conversation

@felixmosh
Copy link

closes #553

@felixmosh felixmosh requested a review from a team as a code owner October 7, 2024 18:37
@felixmosh felixmosh requested review from TheSpyder, ltrouton and spocke and removed request for a team October 7, 2024 18:37
@felixmosh
Copy link
Author

?

// async does not make sense for multiple items unless
// they are not dependent (which will be unlikely)
return { src: item, async, defer };
return { src: item, async, defer, nonce };
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@felixmosh I believe nonce must be unique for each script tag therefore using the same nonce for multiple script tags is not recommended

Copy link
Author

@felixmosh felixmosh Nov 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, nonce must much to the csp header value = one value

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add the nonce as a valid attibute for script loading

3 participants