diff --git a/frontend/index.html b/frontend/index.html index 437d8bf..626d11c 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -4,6 +4,7 @@ + diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 9007510..1240b93 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -46,7 +46,7 @@ http { index index.html; # Security headers for frontend - add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: https:; font-src 'self' data: https://fonts.gstatic.com; connect-src 'self' http://localhost:3000 http://localhost:1337 https://api.placebo.mk https://cms.placebo.mk;" always; + add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://eu-assets.i.posthog.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: https:; font-src 'self' data: https://fonts.gstatic.com; connect-src 'self' http://localhost:3000 http://localhost:1337 https://api.placebo.mk https://cms.placebo.mk https://eu.i.posthog.com https://eu-assets.i.posthog.com;" always; # Handle React Router location / { diff --git a/pwa/index.html b/pwa/index.html index 3dcd13f..ba65b7a 100644 --- a/pwa/index.html +++ b/pwa/index.html @@ -5,6 +5,7 @@ + diff --git a/pwa/nginx.conf b/pwa/nginx.conf index c1de787..21cfe59 100644 --- a/pwa/nginx.conf +++ b/pwa/nginx.conf @@ -46,7 +46,7 @@ http { index index.html; # Security headers for frontend - add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; style-src-elem 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: https:; font-src 'self' data: https://fonts.gstatic.com; connect-src 'self' https://api.placebo.mk https://cms.placebo.mk https://app.placebo.mk wss://api.placebo.mk; manifest-src 'self';" always; + add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://eu-assets.i.posthog.com; style-src 'self' 'unsafe-inline'; style-src-elem 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: https:; font-src 'self' data: https://fonts.gstatic.com; connect-src 'self' https://api.placebo.mk https://cms.placebo.mk https://app.placebo.mk wss://api.placebo.mk https://eu.i.posthog.com https://eu-assets.i.posthog.com; manifest-src 'self';" always; # Handle React Router location / {