Skip to content

Commit

Permalink
Avoid using wildcards for CSP header
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Jul 24, 2022
1 parent c4f56a5 commit a57f4e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@
# (including inline scripts and event-handling HTML attributes).
Content-Security-Policy = """
default-src 'self';
script-src 'self' *.googletagmanager.com;
script-src 'self' www.googletagmanager.com;
style-src 'self';
img-src 'self' data: *.google-analytics.com *.googletagmanager.com *.gstatic.com;
img-src 'self' data: www.google-analytics.com www.googletagmanager.com www.gstatic.com stats.g.doubleclick.net;
font-src 'self';
connect-src 'self' *.google-analytics.com *.analytics.google.com analytics.google.com *.googletagmanager.com *.doubleclick.net;
connect-src 'self' www.google-analytics.com analytics.google.com www.googletagmanager.com stats.g.doubleclick.net;
media-src 'self';
object-src 'self';
frame-src 'none';
Expand Down

0 comments on commit a57f4e3

Please sign in to comment.