Skip to content

Commit

Permalink
Merge pull request #1079 from libris/feature/LWS-215-add-content-secu…
Browse files Browse the repository at this point in the history
…rity-policy

Add Content-Security-Policy to Svelte config
  • Loading branch information
andersju authored Jul 5, 2024
2 parents 83aea02 + 1031752 commit fd45b67
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lxl-web/svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ const config = {
adapter: adapter(),
paths: {
relative: false
},
csp: {
directives: {
'default-src': ['self'],
'script-src': ['self', 'https://analytics.kb.se'],
'style-src': ['self', 'unsafe-inline'],
'base-uri': ['self'],
'form-action': ['self'],
'frame-ancestors': ['none'],
'img-src': ['self', 'kb.se', '*.kb.se', 'data:']
}
}
}
};
Expand Down

0 comments on commit fd45b67

Please sign in to comment.