projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deprecate /api/pleroma/admin/users/:nickname/toggle_activation instead of deleting it
[akkoma]
/
lib
/
pleroma
/
plugs
/
http_security_plug.ex
diff --git
a/lib/pleroma/plugs/http_security_plug.ex
b/lib/pleroma/plugs/http_security_plug.ex
index 485ddfbc72ef03263199aaa4d4abd6c16829daa1..a7cc228318af06514ae7a74ca15d3478d56816c7 100644
(file)
--- a/
lib/pleroma/plugs/http_security_plug.ex
+++ b/
lib/pleroma/plugs/http_security_plug.ex
@@
-56,14
+56,14
@@
defmodule Pleroma.Plugs.HTTPSecurityPlug do
connect_src = "connect-src 'self' #{static_url} #{websocket_url}"
connect_src =
connect_src = "connect-src 'self' #{static_url} #{websocket_url}"
connect_src =
- if
Mix.env(
) == :dev do
+ if
Pleroma.Config.get(:env
) == :dev do
connect_src <> " http://localhost:3035/"
else
connect_src
end
script_src =
connect_src <> " http://localhost:3035/"
else
connect_src
end
script_src =
- if
Mix.env(
) == :dev do
+ if
Pleroma.Config.get(:env
) == :dev do
"script-src 'self' 'unsafe-eval'"
else
"script-src 'self'"
"script-src 'self' 'unsafe-eval'"
else
"script-src 'self'"