Skip to content

Commit

Permalink
Merge pull request #851 from weni-ai/nexus-1186-aws-in-CSP
Browse files Browse the repository at this point in the history
[Nexus-1186] Adds Amazon S3 in Content Security Policy
  • Loading branch information
cristiantela authored May 3, 2024
2 parents 918c270 + 698a8ca commit cb1d1cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ http {
set $CSP_SCRIPT "script-src 'self' 'unsafe-eval' 'unsafe-inline' js.stripe.com www.googletagmanager.com storage.googleapis.com";
set $CSP_STYLE "style-src 'self' 'unsafe-hashes' 'unsafe-inline' fonts.googleapis.com";
set $CSP_FONT "font-src 'self' fonts.gstatic.com";
set $CSP_IMAGE "img-src 'self' data: www.google.com.br www.googletagmanager.com";
set $CSP_CHILD "child-src 'self' *.weni.ai m.stripe.network js.stripe.com";
set $CSP_IMAGE "img-src 'self' data: www.google.com.br www.googletagmanager.com *.amazonaws.com";
set $CSP_CHILD "child-src 'self' *.weni.ai m.stripe.network js.stripe.com *.amazonaws.com";
set $CSP_CONNECT "connect-src 'self' *.weni.ai www.google-analytics.com analytics.google.com";

add_header Content-Security-Policy "${CSP_DEFAULT}; ${CSP_SCRIPT}; ${CSP_STYLE}; ${CSP_FONT}; ${CSP_IMAGE}; ${CSP_CHILD}; ${CSP_CONNECT};";
Expand Down

0 comments on commit cb1d1cb

Please sign in to comment.