From 30d1429e831628bd2f3d634a94bad46f1e0dc9e2 Mon Sep 17 00:00:00 2001 From: videogame hacker Date: Fri, 5 Nov 2021 20:40:42 +0000 Subject: [PATCH] Cache-busting and anonymous crossorigin for video --- frontend/index.html | 4 ++-- frontend/main.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index f4b00bf..8831bab 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -3,7 +3,7 @@ watch party :D - + @@ -47,6 +47,6 @@ - + diff --git a/frontend/main.js b/frontend/main.js index 1e460b3..f119e7b 100644 --- a/frontend/main.js +++ b/frontend/main.js @@ -6,6 +6,7 @@ const createVideoElement = (videoUrl, subtitles) => { const video = document.createElement("video"); video.controls = true; video.autoplay = false; + video.crossOrigin = "anonymous"; const source = document.createElement("source"); source.src = videoUrl;