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

This commit is contained in:
wukko 2024-08-22 13:38:04 +06:00
parent ed4a5889ab
commit 07dc176024
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -45,6 +45,8 @@ export async function streamDefault(streamInfo, res) {
if (streamInfo.isAudioOnly) { if (streamInfo.isAudioOnly) {
filename = `${streamInfo.filename}.${streamInfo.audioFormat}` filename = `${streamInfo.filename}.${streamInfo.audioFormat}`
} }
res.setHeader("Cross-Origin-Resource-Policy", "cross-origin");
res.setHeader('Content-disposition', contentDisposition(filename)); res.setHeader('Content-disposition', contentDisposition(filename));
const { body: stream, headers } = await request(streamInfo.urls, { const { body: stream, headers } = await request(streamInfo.urls, {