Skip to content

Commit

Permalink
Remove unsafe-eval CSP directive for scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudlena committed Oct 15, 2023
1 parent ee89e7d commit e4359e0
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 94 deletions.
32 changes: 16 additions & 16 deletions infrastructure/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion infrastructure/terraform.tfstate
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": 4,
"terraform_version": "1.5.7",
"terraform_version": "1.6.1",
"serial": 216,
"lineage": "2c3e0ed3-a77b-46ac-1ae6-ec00c8c0e1e0",
"outputs": {},
Expand Down
150 changes: 75 additions & 75 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<meta name="viewport" content="width=device-width" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
Expand Down
4 changes: 3 additions & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ const config = {
csp: {
directives: {
'default-src': ['self'],
'script-src': ['unsafe-eval', 'unsafe-inline', 'self'],
'script-src': ['unsafe-inline', 'self'],
'style-src': ['unsafe-inline', 'self'],
'img-src': ['self', 'data:'],
'font-src': ['self', 'data:'],
'connect-src': ['*'],
'object-src': ['none'],
'frame-ancestors': ['none'],
'base-uri': ['none'],
'form-action': ['https://formspree.io']
}
}
Expand Down

0 comments on commit e4359e0

Please sign in to comment.