Skip to content

Commit

Permalink
fix: csp headers for google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
HJunyuan committed Aug 6, 2024
1 parent c39c46c commit f4aef1f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion public/_headers
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
X-Frame-Options: DENY
Content-Security-Policy: default-src 'self'; connect-src *; frame-ancestors 'none';
# Multi-value headers: https://docs.netlify.com/routing/headers/#multi-value-headers
Content-Security-Policy: '''
default-src 'self';
script-src: https://*.googletagmanager.com;
connect-src * https://*.google-analytics.com https://*.analytics.google.com https://*.googletagmanager.com;
frame-ancestors 'none';'''

0 comments on commit f4aef1f

Please sign in to comment.