Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: assorted CSP issues #2323

Merged
merged 4 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/dotcom_web/plugs/secure_headers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ defmodule DotcomWeb.Plugs.SecureHeaders do
*.googleapis.com
*.s3.amazonaws.com
analytics.google.com
cdn.mbta.com
px.ads.linkedin.com
stats.g.doubleclick.net
www.google-analytics.com
Expand All @@ -28,7 +29,9 @@ defmodule DotcomWeb.Plugs.SecureHeaders do
livestream.com
www.youtube.com
www.google.com
www.googletagmanager.com
www.instagram.com
*.soundcloud.com
],
img: ~w[
img-src
Expand Down
1 change: 0 additions & 1 deletion lib/dotcom_web/templates/layout/root.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
<link rel="apple-touch-icon" href="<%= static_url(@conn, "/apple-touch-icon.png") %>" type="image/png">
<link rel="icon" href="<%= static_url(@conn, "/images/mbta-logo-t-favicon.png") %>" sizes="32x32" type="image/png">
<link rel="icon" href="<%= static_url(@conn, "/favicon.ico") %>" sizes="16x16" type="image/vnd.microsoft.icon">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">

<%= if google_tag_manager_id() do %>
<link rel="preconnect" href="//www.google-analytics.com">
Expand Down
Loading