diff --git a/lib/dotcom_web/templates/fare/proposed_sales_locations.html.heex b/lib/dotcom_web/templates/fare/proposed_sales_locations.html.heex index ea01c4a062..1e47c9d76c 100644 --- a/lib/dotcom_web/templates/fare/proposed_sales_locations.html.heex +++ b/lib/dotcom_web/templates/fare/proposed_sales_locations.html.heex @@ -38,6 +38,7 @@ src={static_url(@conn, "/js/tnm.js")} integrity={static_integrity(@conn, "/js/tnm.js")} crossorigin="anonymous" + nonce={assigns[:nonce]} > <% end %> diff --git a/lib/dotcom_web/templates/fare/retail_sales_locations.html.heex b/lib/dotcom_web/templates/fare/retail_sales_locations.html.heex index 773a752457..8caacb2a35 100644 --- a/lib/dotcom_web/templates/fare/retail_sales_locations.html.heex +++ b/lib/dotcom_web/templates/fare/retail_sales_locations.html.heex @@ -23,6 +23,7 @@ src={static_url(@conn, "/js/tnm.js")} integrity={static_integrity(@conn, "/js/tnm.js")} crossorigin="anonymous" + nonce={assigns[:nonce]} > <% end %> diff --git a/lib/dotcom_web/templates/layout/root.html.heex b/lib/dotcom_web/templates/layout/root.html.heex index e2ca8167ab..87c3d2e899 100644 --- a/lib/dotcom_web/templates/layout/root.html.heex +++ b/lib/dotcom_web/templates/layout/root.html.heex @@ -79,6 +79,7 @@ href={static_url(@conn, "/css/core.css")} integrity={static_integrity(@conn, "/css/core.css")} crossorigin="anonymous" + nonce={assigns[:nonce]} /> @@ -151,6 +155,7 @@ src={static_url(@conn, "/js/react.js")} integrity={static_integrity(@conn, "/js/react.js")} crossorigin="anonymous" + nonce={assigns[:nonce]} > <%!-- End unnecessary scripts --%> diff --git a/lib/dotcom_web/templates/layout/style_guide.html.eex b/lib/dotcom_web/templates/layout/style_guide.html.eex index 9239ebddde..2d3d20242e 100644 --- a/lib/dotcom_web/templates/layout/style_guide.html.eex +++ b/lib/dotcom_web/templates/layout/style_guide.html.eex @@ -37,7 +37,7 @@ - + diff --git a/lib/dotcom_web/templates/project/index.html.heex b/lib/dotcom_web/templates/project/index.html.heex index 017fa7f677..b61b254d10 100644 --- a/lib/dotcom_web/templates/project/index.html.heex +++ b/lib/dotcom_web/templates/project/index.html.heex @@ -7,6 +7,7 @@ src={static_url(@conn, "/js/react.js")} integrity={static_integrity(@conn, "/js/react.js")} crossorigin="anonymous" + nonce={assigns[:nonce]} > <% end %> diff --git a/lib/dotcom_web/templates/schedule/_line.html.heex b/lib/dotcom_web/templates/schedule/_line.html.heex index b61319bd4e..d24f4d1a1c 100644 --- a/lib/dotcom_web/templates/schedule/_line.html.heex +++ b/lib/dotcom_web/templates/schedule/_line.html.heex @@ -25,6 +25,7 @@ href={static_url(@conn, "/css/map.css")} integrity={static_integrity(@conn, "/css/map.css")} crossorigin="anonymous" + nonce={assigns[:nonce]} /> <%= if Application.get_env(:dotcom, :dev_server?) do %> <% end %> diff --git a/lib/dotcom_web/templates/stop/show.html.heex b/lib/dotcom_web/templates/stop/show.html.heex index 3a65cdd27a..f1e3f8a56b 100644 --- a/lib/dotcom_web/templates/stop/show.html.heex +++ b/lib/dotcom_web/templates/stop/show.html.heex @@ -3,6 +3,7 @@ href={static_url(@conn, "/css/map.css")} integrity={static_integrity(@conn, "/css/map.css")} crossorigin="anonymous" + nonce={assigns[:nonce]} />
@@ -17,6 +18,7 @@ src={static_url(@conn, "/js/react.js")} integrity={static_integrity(@conn, "/js/react.js")} crossorigin="anonymous" + nonce={assigns[:nonce]} > <% end %> diff --git a/lib/dotcom_web/templates/transit_near_me/index.html.heex b/lib/dotcom_web/templates/transit_near_me/index.html.heex index 856271e9ee..7bd4f046b2 100644 --- a/lib/dotcom_web/templates/transit_near_me/index.html.heex +++ b/lib/dotcom_web/templates/transit_near_me/index.html.heex @@ -10,6 +10,7 @@ href={static_url(@conn, "/css/map.css")} integrity={static_integrity(@conn, "/css/map.css")} crossorigin="anonymous" + nonce={assigns[:nonce]} /> <% end %> diff --git a/lib/dotcom_web/templates/trip_plan/index.html.heex b/lib/dotcom_web/templates/trip_plan/index.html.heex index f31d31495c..ee1d1af798 100644 --- a/lib/dotcom_web/templates/trip_plan/index.html.heex +++ b/lib/dotcom_web/templates/trip_plan/index.html.heex @@ -8,6 +8,7 @@ href={static_url(@conn, "/css/map.css")} integrity={static_integrity(@conn, "/css/map.css")} crossorigin="anonymous" + nonce={assigns[:nonce]} /> <%= case assigns[:query] do %> <% %{itineraries: {:ok, _}} -> %> @@ -39,6 +40,7 @@ src={static_url(@conn, "/js/react.js")} integrity={static_integrity(@conn, "/js/react.js")} crossorigin="anonymous" + nonce={assigns[:nonce]} > <% end %> @@ -66,6 +69,7 @@ href={static_url(@conn, "/css/map.css")} integrity={static_integrity(@conn, "/css/map.css")} crossorigin="anonymous" + nonce={assigns[:nonce]} />
<%= if Application.get_env(:dotcom, :dev_server?) do %> @@ -80,6 +84,7 @@ src={static_url(@conn, "/js/react.js")} integrity={static_integrity(@conn, "/js/react.js")} crossorigin="anonymous" + nonce={assigns[:nonce]} > <% end %>