Skip to content

Commit

Permalink
feat: add tile server URL to CSP (#2344)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen authored Jan 24, 2025
1 parent 4bde6d7 commit abbe797
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/dotcom_web/plugs/secure_headers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ defmodule DotcomWeb.Plugs.SecureHeaders do
content security policy directives at funtime.
"""

@tile_url Application.compile_env!(:dotcom, :tile_server_url)
@base_csp_directives %{
connect: ~w[
connect-src
'self'
*.arcgis.com
*.googleapis.com
*.s3.amazonaws.com
#{@tile_url}
analytics.google.com
cdn.mbta.com
px.ads.linkedin.com
Expand Down

0 comments on commit abbe797

Please sign in to comment.