revert to default CSP for testing

This commit is contained in:
Henry Jameson 2022-04-06 11:16:53 +03:00
parent 9916734b76
commit d860aa32f7

View file

@ -119,7 +119,7 @@ defmodule Pleroma.Web.Plugs.HTTPSecurityPlug do
else
# TODO right now unsafe-eval is needed for WASM to load in chrome
# see: https://github.com/WebAssembly/content-security-policy/issues/7
"script-src 'self' 'unsafe-eval'"
"script-src 'self'"
end
report = if report_uri, do: ["report-uri ", report_uri, ";report-to csp-endpoint"]