From d6542f36f2d681e73c37d0fe8fcdb4bf70a86011 Mon Sep 17 00:00:00 2001 From: Eduard Tihomirov Date: Mon, 27 Jan 2025 11:35:01 +0300 Subject: [PATCH] SUPPORT-8783: Fix --- config/nginx.conf | 3 ++- frontend/index.webpack.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/nginx.conf b/config/nginx.conf index 7ccb8ae..13e99b8 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -81,7 +81,7 @@ http { index index.html; try_files $uri @index; - add_header Content-Security-Policy "frame-ancestors 'none'; default-src 'self'; script-src 'self'; style-src 'unsafe-inline' 'self' data:; font-src 'self' data:; img-src 'self' data:;"; + add_header Content-Security-Policy "frame-ancestors 'none'; default-src 'self'; connect-src 'self' https:; script-src 'self'; style-src 'unsafe-inline' 'self' data:; font-src 'self' data:; img-src 'self' data:;"; #Application config location = /src/resources/app-config.json { @@ -106,6 +106,7 @@ http { location @index { root /frontend; add_header Cache-Control "no-cache"; + add_header Content-Security-Policy "frame-ancestors 'none'; default-src 'self'; connect-src 'self' https:; script-src 'self'; style-src 'unsafe-inline' 'self' data:; font-src 'self' data:; img-src 'self' data:;"; expires 0; try_files /index.html =404; } diff --git a/frontend/index.webpack.html b/frontend/index.webpack.html index 0a55a7e..183b8d9 100644 --- a/frontend/index.webpack.html +++ b/frontend/index.webpack.html @@ -5,7 +5,7 @@ + content="default-src 'self'; connect-src 'self' https:; script-src 'self'; style-src 'unsafe-inline' 'self' data:; font-src 'self' data:; img-src 'self' data:"/>