Skip to content

Commit

Permalink
Merge pull request #403 from sparcs-kaist/hotfix/channel-csp
Browse files Browse the repository at this point in the history
Fix GA error
  • Loading branch information
injoonH committed Sep 15, 2023
2 parents 0fd6204 + d829ba4 commit 1e44f58
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nginx/nginx-production.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ server {
set $CSP "${CSP}object-src 'self'; "; # Disallow Objects
set $CSP "${CSP}connect-src 'self' *.channel.io *.sentry.io wss://*.channel.io "; # Connect rules for channeltalk (1/2)
set $CSP "${CSP}wss://*.desk-ws.channel.io wss://*.front-ws.channel.io "; # Connect rules for channeltalk (2/2)
set $CSP "${CSP}https://www.google-analytics.com https://analytics.google.com; "; # Connect rules for google analytics

set $CSP "${CSP}https://www.google-analytics.com https://analytics.google.com "; # Connect rules for google analytics (1/2)
set $CSP "${CSP}https://stats.g.doubleclick.net; "; # Connect rules for google analytics (2/2)

set $CSP "${CSP}img-src * data: blob:; "; # Image rules for new-ara (allow all, data, blobs)

set $CSP "${CSP}script-src 'self' "; # Script rules for new-ara
Expand Down

0 comments on commit 1e44f58

Please sign in to comment.