diff --git a/lib/pleroma/web/plugs/http_security_plug.ex b/lib/pleroma/web/plugs/http_security_plug.ex index e2e9e3cfd9..ef53fc0a0c 100644 --- a/lib/pleroma/web/plugs/http_security_plug.ex +++ b/lib/pleroma/web/plugs/http_security_plug.ex @@ -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