Compare commits
1 Commits
feature/sa
...
flash-supp
Author | SHA1 | Date | |
---|---|---|---|
|
200f1b0e89 |
@ -116,7 +116,9 @@ 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
|
||||||
"script-src 'self'"
|
# 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'"
|
||||||
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 New Issue
Block a user