Player: allow styles on CSP, loop videos

This commit is contained in:
href 2019-02-19 18:56:57 +01:00
commit f4bfc628ca
No known key found for this signature in database
GPG key ID: EE8296C1A152C325
4 changed files with 9 additions and 9 deletions

View file

@ -197,7 +197,7 @@ defmodule Pleroma.Web.OStatus.OStatusController do
|> put_resp_header("x-frame-options", "ALLOW")
|> put_resp_header(
"content-security-policy",
"default-src 'none'; img-src 'self' data: https:; media-src 'self' https:;"
"default-src 'none';style-src 'self' 'unsafe-inline';img-src 'self' data: https:; media-src 'self' https:;"
)
|> put_view(Pleroma.Web.Metadata.PlayerView)
|> render("player.html", url)