Skip to content

Commit a57f4e3

Browse files
committed
Avoid using wildcards for CSP header
1 parent c4f56a5 commit a57f4e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

netlify.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@
8989
# (including inline scripts and event-handling HTML attributes).
9090
Content-Security-Policy = """
9191
default-src 'self';
92-
script-src 'self' *.googletagmanager.com;
92+
script-src 'self' www.googletagmanager.com;
9393
style-src 'self';
94-
img-src 'self' data: *.google-analytics.com *.googletagmanager.com *.gstatic.com;
94+
img-src 'self' data: www.google-analytics.com www.googletagmanager.com www.gstatic.com stats.g.doubleclick.net;
9595
font-src 'self';
96-
connect-src 'self' *.google-analytics.com *.analytics.google.com analytics.google.com *.googletagmanager.com *.doubleclick.net;
96+
connect-src 'self' www.google-analytics.com analytics.google.com www.googletagmanager.com stats.g.doubleclick.net;
9797
media-src 'self';
9898
object-src 'self';
9999
frame-src 'none';

0 commit comments

Comments
 (0)