Skip to content

Commit

Permalink
hotfix: add missing CSP origins
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed Jul 3, 2024
1 parent 0273b4b commit 60ac4c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ case config_env() do
"style-src 'self' 'unsafe-inline' www.gstatic.com #{System.get_env("STATIC_HOST", "")} cdn.jsdelivr.net",
"script-src 'self' 'unsafe-eval' 'unsafe-inline' #{System.get_env("STATIC_HOST", "")} insitez.blob.core.windows.net snap.licdn.com connect.facebook.net www.instagram.com www.google-analytics.com *.google.com www.gstatic.com www.googletagmanager.com *.googleapis.com data.mbta.com",
"font-src 'self' #{System.get_env("STATIC_HOST", "")}",
"connect-src 'self' *.googleapis.com #{sentry_dsn_host || ""} www.google-analytics.com www.google.com px.ads.linkedin.com stats.g.doubleclick.net",
"connect-src 'self' *.googleapis.com #{sentry_dsn_host || ""} www.google-analytics.com www.google.com analytics.google.com px.ads.linkedin.com stats.g.doubleclick.net",
"frame-src 'self' data.mbta.com www.youtube.com www.google.com cdn.knightlab.com livestream.com www.instagram.com"
],
"; "
Expand All @@ -246,7 +246,7 @@ case config_env() do
[
"default-src 'none'",
"img-src 'self' cdn.mbta.com #{System.get_env("CMS_API_BASE_URL", "")} *.google.com *.googleapis.com *.gstatic.com mbta-map-tiles-dev.s3.amazonaws.com data: i.ytimg.com www.googletagmanager.com",
"style-src 'self' 'unsafe-inline' localhost:* www.gstatic.com",
"style-src 'self' 'unsafe-inline' localhost:* www.gstatic.com cdn.jsdelivr.net",
"script-src 'self' 'unsafe-eval' 'unsafe-inline' localhost:* www.instagram.com *.google.com www.gstatic.com www.googletagmanager.com www.google-analytics.com *.googleapis.com data.mbta.com",
"font-src 'self' localhost:*",
"connect-src 'self' localhost:* ws://localhost:* *.googleapis.com",
Expand Down

0 comments on commit 60ac4c3

Please sign in to comment.