增加 Access-Control-Allow-Origin: *
This commit is contained in:
parent
60604020c7
commit
6b02d2a720
@ -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', () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user