From: FloatingGhost Date: Sat, 11 Mar 2023 18:24:44 +0000 (+0000) Subject: Remove mix.env reference X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=70803d796601428f52f585d6fdd3b218f5f3912c;p=akkoma Remove mix.env reference --- diff --git a/lib/pleroma/web/plugs/http_security_plug.ex b/lib/pleroma/web/plugs/http_security_plug.ex index 6841b13aa..b1f1ada94 100644 --- a/lib/pleroma/web/plugs/http_security_plug.ex +++ b/lib/pleroma/web/plugs/http_security_plug.ex @@ -116,8 +116,6 @@ defmodule Pleroma.Web.Plugs.HTTPSecurityPlug do script_src = "script-src 'self' '#{nonce_tag}'" - script_src = if Mix.env() == :dev, do: [script_src, " 'unsafe-eval'"], else: script_src - report = if report_uri, do: ["report-uri ", report_uri, ";report-to csp-endpoint"] insecure = if scheme == "https", do: "upgrade-insecure-requests"