Skip to content

Commit

Permalink
fix: csp headers for google analytics (#68)
Browse files Browse the repository at this point in the history
* fix: csp headers for google analytics

* fix: syntax of _headers file

* fix: invalid character

* fix: add 'self' to script-src
  • Loading branch information
HJunyuan authored Aug 6, 2024
1 parent c39c46c commit 5df2977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/_headers
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/*
X-Frame-Options: DENY
Content-Security-Policy: default-src 'self'; connect-src *; frame-ancestors 'none';
Content-Security-Policy: default-src 'self'; script-src 'self' https://*.googletagmanager.com; connect-src * https://*.google-analytics.com https://*.analytics.google.com https://*.googletagmanager.com; frame-ancestors 'none';

0 comments on commit 5df2977

Please sign in to comment.