-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
feature / enhancementNew feature or requestNew feature or request
Milestone
Description
Describe the problem
It's generally considered a good idea to enable content-security-policy-report-only before enabling CSP, just in case it will break a bunch of stuff.
Describe the proposed solution
With this config, the header name would be content-security-policy-report-only instead of content-security-policy. Everything else would be unchanged.
// svelte.config.js
export default {
kit: {
csp: {
reportOnly: true,
directives: {...}
}
}
};Alternatives considered
No response
Importance
nice to have
Additional Information
No response
codepainting
Metadata
Metadata
Assignees
Labels
feature / enhancementNew feature or requestNew feature or request