[backend] Fix video playback for files hosted from different origins

This commit is contained in:
Laura Hausmann 2024-03-18 15:33:53 +01:00
parent b1b9616572
commit 01fbd1a5c7
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605

View File

@ -469,7 +469,7 @@ router.get("/notes/:note", async (ctx, next) => {
ctx.set("Cache-Control", "public, max-age=15");
ctx.set(
"Content-Security-Policy",
"default-src 'self' 'unsafe-inline'; img-src *; frame-ancestors *",
"default-src 'self' 'unsafe-inline'; img-src *; media-src *; frame-ancestors *",
);
return;