Skip to content

Commit

Permalink
fix: remove csp script elem
Browse files Browse the repository at this point in the history
  • Loading branch information
acnormun committed Dec 18, 2024
1 parent e31af5c commit 3173417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ http {
set $CSP_WORKER_SRC "worker-src data: blob: https://accounts.google.com/";
set $CSP_FRAME_ANCESTORS "frame-ancestors 'self' *.weni.ai https://accounts.google.com/ https://appvtexio.stg.cloud.weni.ai/ https://anadev--wenipartnerbr.myvtex.com/ https://wenipartnerbr.myvtex.com/";

add_header Content-Security-Policy "${CSP_DEFAULT}; ${CSP_SCRIPT}; ${CSP_SCRIPT_ELEM}; ${CSP_STYLE}; ${CSP_FONT}; ${CSP_IMAGE}; ${CSP_CONNECT}; ${CSP_FRAME_SRC}; ${CSP_WORKER_SRC}; ${CSP_FRAME_ANCESTORS};";
add_header Content-Security-Policy "${CSP_DEFAULT}; ${CSP_SCRIPT}; ${CSP_STYLE}; ${CSP_FONT}; ${CSP_IMAGE}; ${CSP_CONNECT}; ${CSP_FRAME_SRC}; ${CSP_WORKER_SRC}; ${CSP_FRAME_ANCESTORS};";
include /usr/share/nginx/html/headers;
listen 8080;
server_name localhost;
Expand Down

0 comments on commit 3173417

Please sign in to comment.