-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
security: avoid CSP conflict with sha/nonce during dev & add support for 'style-src-elem' #11562
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
Changes from all commits
Commits
Show all changes
18 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 bd05197
remove sha256 or nonce from csp when adding unsafe-inline during dev
MathiasWP 7ec3bcd
automatically add csp sha for empty stylesheets on style-src-elem if …
MathiasWP 9072f43
Update giant-years-drum.md
MathiasWP 8ed4408
format and fix typo
MathiasWP cb6aec9
Merge branch 'csp-dev-fix' of github.com:MathiasWP/kit into csp-dev-fix
MathiasWP 4e03f8a
Update .changeset/giant-years-drum.md
MathiasWP 98271f7
split into 2 changesets
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 | ||
--- | ||
|
||
feat: add CSP support for style-src-elem | ||
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: address CSP conflicts with sha/nonce during dev |
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
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.