Skip to content

Commit 8ac6723

Browse files
committed
Adjust CSP policy for images
1 parent 5843416 commit 8ac6723

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/transport/lib/transport_web/plugs/custom_secure_browser_headers.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ defmodule TransportWeb.Plugs.CustomSecureBrowserHeaders do
4343
"connect-src" => "*",
4444
"font-src" => "*",
4545
"frame-ancestors" => "'none'",
46-
"img-src" =>
47-
"'self' data: https://api.mapbox.com https://data.geopf.fr https://static.data.gouv.fr https://www.data.gouv.fr https://*.dmcdn.net #{Transport.S3.permanent_url(:logos)}",
46+
"img-src" => "'self' https: data:",
4847
"script-src" => "'self' 'unsafe-eval' 'unsafe-inline' https://stats.data.gouv.fr/matomo.js",
4948
"frame-src" => "https://*.dailymotion.com",
5049
"style-src" => "'self' 'nonce-#{nonce}' #{vega_hash_values}",

0 commit comments

Comments
 (0)