api/stream/types: fix cross origin resource policy for proxy
This commit is contained in:
parent
ed4a5889ab
commit
07dc176024
1 changed files with 2 additions and 0 deletions
|
@ -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, {
|
||||
|
|
Loading…
Reference in a new issue