Skip to content

Commit

Permalink
wip: more appropriate GTM-related CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed Nov 22, 2024
1 parent d0e37ef commit ff0870b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/dotcom_web/plugs/secure_headers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ defmodule DotcomWeb.Plugs.SecureHeaders do
analytics.google.com
px.ads.linkedin.com
stats.g.doubleclick.net
www.google-analytics.com
www.google.com
https://*.google-analytics.com
https://*.analytics.google.com
https://*.googletagmanager.com
],
default: ~w[default-src 'none'],
font: ~w[font-src 'self'],
Expand Down Expand Up @@ -44,14 +45,13 @@ defmodule DotcomWeb.Plugs.SecureHeaders do
px.ads.linkedin.com
www.linkedin.com
www.facebook.com
www.googletagmanager.com
https://*.google-analytics.com
],
script: ~w[
script-src
'nonce-{NONCE}'
'self'
'unsafe-eval'
'unsafe-inline'
*.arcgis.com
*.google.com
*.googleapis.com
Expand All @@ -62,7 +62,7 @@ defmodule DotcomWeb.Plugs.SecureHeaders do
www.instagram.com
www.google-analytics.com
www.gstatic.com
www.googletagmanager.com
https://*.googletagmanager.com
],
style: ~w[style-src 'self' 'unsafe-inline' www.gstatic.com],
worker: ~w[worker-src blob: ;]
Expand Down

0 comments on commit ff0870b

Please sign in to comment.