增加 Access-Control-Allow-Origin: *

This commit is contained in:
筱莱Ceale 2024-05-01 17:28:38 +08:00 committed by GitHub
parent 60604020c7
commit 6b02d2a720
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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', () => {