Update http_security_plug.ex
This commit is contained in:
parent
79bd363a68
commit
a31d3589ed
1 changed files with 0 additions and 2 deletions
|
@ -117,8 +117,6 @@ defmodule Pleroma.Web.Plugs.HTTPSecurityPlug do
|
||||||
if Config.get(:env) == :dev do
|
if Config.get(:env) == :dev do
|
||||||
"script-src 'self' 'unsafe-eval'"
|
"script-src 'self' 'unsafe-eval'"
|
||||||
else
|
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' 'wasm-unsafe-eval'"
|
"script-src 'self' 'wasm-unsafe-eval'"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue