mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 13:33:25 +00:00
Remove CORS_ALLOWED flag and add headers
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { flags } from '@/entrypoint/utils/targets';
|
|
||||||
import { makeEmbed } from '@/providers/base';
|
import { makeEmbed } from '@/providers/base';
|
||||||
|
import { vidsrcRCPBase } from '@/providers/sources/vidsrc/common';
|
||||||
|
|
||||||
const hlsURLRegex = /file:"(.*?)"/;
|
const hlsURLRegex = /file:"(.*?)"/;
|
||||||
const setPassRegex = /var pass_path = "(.*set_pass\.php.*)";/;
|
const setPassRegex = /var pass_path = "(.*set_pass\.php.*)";/;
|
||||||
@@ -56,7 +56,11 @@ export const vidsrcembedScraper = makeEmbed({
|
|||||||
id: 'primary',
|
id: 'primary',
|
||||||
type: 'hls',
|
type: 'hls',
|
||||||
playlist: finalUrl,
|
playlist: finalUrl,
|
||||||
flags: [flags.CORS_ALLOWED],
|
headers: {
|
||||||
|
Referer: vidsrcRCPBase,
|
||||||
|
Origin: vidsrcRCPBase,
|
||||||
|
},
|
||||||
|
flags: [],
|
||||||
captions: [],
|
captions: [],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user