Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: csp headers for google analytics
Browse files Browse the repository at this point in the history
HJunyuan committed Aug 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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.