keep the websocket url for all modes
This commit is contained in:
parent
f50fd9278f
commit
2a07411b0c
@ -93,7 +93,7 @@ defmodule Pleroma.Web.Plugs.HTTPSecurityPlug do
|
|||||||
|
|
||||||
img_src = "img-src 'self' data: blob:"
|
img_src = "img-src 'self' data: blob:"
|
||||||
media_src = "media-src 'self'"
|
media_src = "media-src 'self'"
|
||||||
connect_src = "connect-src 'self' blob:"
|
connect_src = ["connect-src 'self' blob: ", ?\s, websocket_url]
|
||||||
|
|
||||||
# Strict multimedia CSP enforcement only when MediaProxy is enabled
|
# Strict multimedia CSP enforcement only when MediaProxy is enabled
|
||||||
{img_src, media_src, connect_src} =
|
{img_src, media_src, connect_src} =
|
||||||
@ -103,7 +103,7 @@ defmodule Pleroma.Web.Plugs.HTTPSecurityPlug do
|
|||||||
{
|
{
|
||||||
[img_src, sources],
|
[img_src, sources],
|
||||||
[media_src, sources],
|
[media_src, sources],
|
||||||
[connect_src, sources, ?\s, websocket_url]
|
[connect_src, sources]
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user