From 07dc1760246fa4fbdcdc4227de651f423905314b Mon Sep 17 00:00:00 2001 From: wukko Date: Thu, 22 Aug 2024 13:38:04 +0600 Subject: [PATCH] api/stream/types: fix cross origin resource policy for proxy --- api/src/stream/types.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/stream/types.js b/api/src/stream/types.js index b12e5de8..01b79dc1 100644 --- a/api/src/stream/types.js +++ b/api/src/stream/types.js @@ -45,6 +45,8 @@ export async function streamDefault(streamInfo, res) { if (streamInfo.isAudioOnly) { filename = `${streamInfo.filename}.${streamInfo.audioFormat}` } + + res.setHeader("Cross-Origin-Resource-Policy", "cross-origin"); res.setHeader('Content-disposition', contentDisposition(filename)); const { body: stream, headers } = await request(streamInfo.urls, {