reduce redundant reduntancy reduction
This commit is contained in:
parent
f8ef4924ec
commit
f50fd9278f
|
@ -93,7 +93,7 @@ defp csp_string do
|
|||
|
||||
img_src = "img-src 'self' data: blob:"
|
||||
media_src = "media-src 'self'"
|
||||
connect_src = ["connect-src 'self' blob: ", static_url, ?\s, websocket_url]
|
||||
connect_src = "connect-src 'self' blob:"
|
||||
|
||||
# Strict multimedia CSP enforcement only when MediaProxy is enabled
|
||||
{img_src, media_src, connect_src} =
|
||||
|
@ -103,7 +103,7 @@ defp csp_string do
|
|||
{
|
||||
[img_src, sources],
|
||||
[media_src, sources],
|
||||
[connect_src, sources]
|
||||
[connect_src, sources, ?\s, websocket_url]
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue