From 21af6fb2122f525fc2121aa0b71290aea3d713a3 Mon Sep 17 00:00:00 2001 From: D3strukt0r Date: Thu, 19 Oct 2023 09:38:57 +0200 Subject: [PATCH] Fix CSP to specific urls (Figure out how to use env variables) --- compose.build.yml | 4 ++-- pwa/svelte.config.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compose.build.yml b/compose.build.yml index 38fd4c6..410c9a8 100644 --- a/compose.build.yml +++ b/compose.build.yml @@ -7,7 +7,7 @@ services: target: prod platforms: - linux/amd64 - - linux/arm64 + #- linux/arm64 api: build: @@ -17,4 +17,4 @@ services: target: prod platforms: - linux/amd64 - - linux/arm64 + #- linux/arm64 diff --git a/pwa/svelte.config.js b/pwa/svelte.config.js index 1bcff3d..4da37d7 100644 --- a/pwa/svelte.config.js +++ b/pwa/svelte.config.js @@ -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'],