mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
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) {
|
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, {
|
||||||
|
|
Loading…
Reference in a new issue