From c14222f7017f22ee7eef2ddfabbb3a5caf903c94 Mon Sep 17 00:00:00 2001 From: Nazar Leush Date: Mon, 14 Sep 2026 16:27:25 +0300 Subject: [PATCH] bugfix `allow_origin` undefined --- lib/plugins/validators/async/21_checkContentType.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/validators/async/21_checkContentType.js b/lib/plugins/validators/async/21_checkContentType.js index 1a756470b..79bd38606 100644 --- a/lib/plugins/validators/async/21_checkContentType.js +++ b/lib/plugins/validators/async/21_checkContentType.js @@ -125,7 +125,7 @@ export default { if ((data.type == CONFIG.T.stream_apple_mpegurl || data.type == CONFIG.T.stream_x_mpegurl) && data.allow_origin !== '*' - && (!data.request_origin && !data.allow_origin || data.allow_origin?.indexOf(data.request_origin) == -1)) { + && (!data.request_origin || !data.allow_origin || data.allow_origin.indexOf(data.request_origin) === -1)) { link.error = 'CORS headers on the player are not configured correctly'; }