Update lib/pleroma/web/plugs/http_security_plug.ex
This commit is contained in:
parent
db76ea578a
commit
79bd363a68
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ defp csp_string do
|
||||||
else
|
else
|
||||||
# TODO right now unsafe-eval is needed for WASM to load in chrome
|
# TODO right now unsafe-eval is needed for WASM to load in chrome
|
||||||
# see: https://github.com/WebAssembly/content-security-policy/issues/7
|
# see: https://github.com/WebAssembly/content-security-policy/issues/7
|
||||||
"script-src 'self' 'unsafe-eval'"
|
"script-src 'self' 'wasm-unsafe-eval'"
|
||||||
end
|
end
|
||||||
|
|
||||||
report = if report_uri, do: ["report-uri ", report_uri, ";report-to csp-endpoint"]
|
report = if report_uri, do: ["report-uri ", report_uri, ";report-to csp-endpoint"]
|
||||||
|
|
Loading…
Reference in a new issue