Skip to content

best way to save what you love

api/stream/types: fix cross origin resource policy for proxy

wukko07dc1760246f
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, {