add cors restriction to caption, add preferredHeaders

This commit is contained in:
Jorrin 2024-01-28 00:29:52 +01:00
parent f67d82200f
commit c6c921f80b
1 changed files with 5 additions and 1 deletions

View File

@ -32,7 +32,7 @@ export const closeLoadScraper = makeEmbed({
return {
id: url,
language,
hasCorsRestrictions: false,
hasCorsRestrictions: true,
type: captionType,
url,
};
@ -60,6 +60,10 @@ export const closeLoadScraper = makeEmbed({
playlist: url,
captions,
flags: [flags.IP_LOCKED],
preferredHeaders: {
Referer: 'https://closeload.top/',
Origin: 'https://closeload.top',
},
},
],
};