Remove mix.env reference
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Sat, 11 Mar 2023 18:24:44 +0000 (18:24 +0000)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Sat, 11 Mar 2023 18:24:44 +0000 (18:24 +0000)
lib/pleroma/web/plugs/http_security_plug.ex

index 6841b13aa35caeee7bbff998bd27832ba1836a20..b1f1ada94c98553a49393bd69e790638d5372c48 100644 (file)
@@ -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"