mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
let middleware pass
This handles media controller communication. Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
@@ -88,6 +88,11 @@ const VALID_FETCH_COMBOS = new Set([
|
|||||||
'cors|empty', // standard fetch() from cross-origin SPA
|
'cors|empty', // standard fetch() from cross-origin SPA
|
||||||
'same-origin|empty', // same-origin fetch()
|
'same-origin|empty', // same-origin fetch()
|
||||||
'navigate|document', // direct browser navigation to an API URL
|
'navigate|document', // direct browser navigation to an API URL
|
||||||
|
'no-cors|image', // <img src="..."> loading a media/asset route
|
||||||
|
'no-cors|video', // <video src="..."> / <source> streaming a media route
|
||||||
|
'no-cors|audio', // <audio src="...">
|
||||||
|
'no-cors|font', // @font-face url() cross-origin font fetch
|
||||||
|
'no-cors|track', // <track src="..."> (video subtitle/caption tracks)
|
||||||
]);
|
]);
|
||||||
|
|
||||||
module.exports = function originGuard(req, res, next) {
|
module.exports = function originGuard(req, res, next) {
|
||||||
|
|||||||
Reference in New Issue
Block a user