Skip to content

Commit

Permalink
Fix CSP to specific urls (Figure out how to use env variables)
Browse files Browse the repository at this point in the history
  • Loading branch information
D3strukt0r committed Oct 19, 2023
1 parent c8f77e3 commit 21af6fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions compose.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
target: prod
platforms:
- linux/amd64
- linux/arm64
#- linux/arm64

api:
build:
Expand All @@ -17,4 +17,4 @@ services:
target: prod
platforms:
- linux/amd64
- linux/arm64
#- linux/arm64
2 changes: 1 addition & 1 deletion pwa/svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const config = {
directives: {
'default-src': ['none'],
'script-src': ['self'],
'connect-src': ['self', /*process.env.PUBLIC_API_URL*/], // TODO: Fix Connect url for GraphQL
'connect-src': ['self', 'https://api.weddingmanager.test', 'https://api-wedding-manager.d3strukt0r.dev'], // TODO: Figure out how to dynamically use env vars here at runtime
'img-src': ['self'],
'manifest-src': ['self'],
'style-src': ['self', 'unsafe-inline'],
Expand Down

0 comments on commit 21af6fb

Please sign in to comment.