mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-13 05:37:44 +02:00
api/stream/types: fix cross origin resource policy for proxy
This commit is contained in:
@ -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, {
|
||||
|
Reference in New Issue
Block a user