Skip to content

Commit

Permalink
Add Content Security Policy (CSP) directives
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardspresume committed Feb 18, 2024
1 parent cf266d0 commit 7b6935a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ const config = {
}
},

csp: {
directives: {
'script-src': ['self']
},
reportOnly: {
'script-src': ['self']
}
},

vitePlugin: {
inspector: true
}
Expand Down

0 comments on commit 7b6935a

Please sign in to comment.