Verified Commit ea105892 authored by shibayashi's avatar shibayashi
Browse files

Use url[:scheme] instead of protocol to determine if https is enabled

parent 39548c38
......@@ -33,7 +33,7 @@ defp headers do
defp csp_string do
protocol = Config.get([Pleroma.Web.Endpoint, :protocol])
scheme = Config.get([Pleroma.Web.Endpoint, :url])[:scheme]
"default-src 'none'",
......@@ -46,7 +46,7 @@ defp csp_string do
"script-src 'self'",
"connect-src 'self' " <> String.replace(Pleroma.Web.Endpoint.static_url(), "http", "ws"),
"manifest-src 'self'",
if protocol == "https" do
if scheme == "https" do
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment