-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix: csp nonce in script-src-elem
, style-src-attr
and style-src-elem
when using unsafe-inline
#11613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
fix: csp nonce in script-src-elem
, style-src-attr
and style-src-elem
when using unsafe-inline
#11613
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
7d80e20
add nonce to script-src-elem csp directive if defined
MathiasWP c4cf0ef
added changeset
MathiasWP b168c24
also handle hashes and style-src-attr and style-src-elem
MathiasWP 72156a0
changed order of variable declaration
MathiasWP 12855e7
fixed typo
MathiasWP 403ab86
updated changeset
MathiasWP e1e0795
fix bug and update test
MathiasWP a6d8419
update test
MathiasWP aabaee2
write better tests and fix bugs
MathiasWP 1d961f1
Update .changeset/giant-years-drum.md
Rich-Harris d59e339
Merge branch 'sveltejs:main' into main
MathiasWP 4fc13c6
Merge branch 'sveltejs:main' into main
MathiasWP 5365a94
fix csp nonce in script-src-elem, style-src-attr and style-src-elem w…
MathiasWP 195d271
fix test desc
MathiasWP 74e8a93
Update giant-years-drum.md
MathiasWP d46d29e
refactor
MathiasWP 5842ed5
Merge branch 'csp-unsafe-inline' of github.com:MathiasWP/kit into csp…
MathiasWP b55ee1c
rename variable
MathiasWP eba0e81
avoid duplicate empty comment hash
MathiasWP d3db232
Merge branch 'main' into pr/MathiasWP/11613
eltigerchino b5d3e10
add back removed test
MathiasWP 5ecaf3b
Merge branch 'csp-unsafe-inline' of github.com:MathiasWP/kit into csp…
MathiasWP c78fe33
added back another test
MathiasWP 06ca1de
add back skips nonce in style-src when using unsafe-inline test
MathiasWP 8be42e1
put tests in same order
MathiasWP File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@sveltejs/kit": patch | ||
--- | ||
|
||
fix: only add nonce to `script-src-elem`, `style-src-attr` and `style-src-elem` CSP directives when `unsafe-inline` is not present |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.