From 6b02d2a720cf8580ee6dfcc69d7d8b721397aabb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AD=B1=E8=8E=B1Ceale?= <93030615+Ceale@users.noreply.github.com> Date: Wed, 1 May 2024 17:28:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20Access-Control-Allow-Origi?= =?UTF-8?q?n:=20*?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/modules/openApi/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/modules/openApi/index.ts b/src/main/modules/openApi/index.ts index 4cd136d2..5b17118a 100644 --- a/src/main/modules/openApi/index.ts +++ b/src/main/modules/openApi/index.ts @@ -46,6 +46,7 @@ const handleSubscribePlayerStatus = (req: http.IncomingMessage, res: http.Server 'Content-Type': 'text/event-stream', Connection: 'keep-alive', 'Cache-Control': 'no-cache', + 'Access-Control-Allow-Origin': '*' }) req.socket.setTimeout(0) req.on('close', () => {