Update http_security_plug.ex
This commit is contained in:
parent
bacf0ddfd5
commit
c100dc84da
1 changed files with 2 additions and 1 deletions
|
@ -177,7 +177,8 @@ defp build_csp_multimedia_source_list do
|
|||
end
|
||||
|
||||
defp map_tile_server do
|
||||
with tile_server <- Config.get([:frontend_configurations, :soapbox_fe, "tileServer"]),
|
||||
with tile_server when is_binary(tile_server) <-
|
||||
Config.get([:frontend_configurations, :soapbox_fe, "tileServer"]),
|
||||
%{host: host} <- URI.parse(tile_server) do
|
||||
"*.#{host}"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue