pinus icon indicating copy to clipboard operation
pinus copied to clipboard

按照快速入门教程走,点击Test Game Server按钮时出现跨域问题,该如何处理?

Open wengmankai opened this issue 11 months ago • 2 comments

通讯协议采用socket.io 浏览器错误提示:Access to XMLHttpRequest at 'http://127.0.0.1:3010/socket.io/?EIO=3&transport=polling&t=PJR1V1L' from origin 'http://localhost:3001' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

wengmankai avatar Feb 06 '25 11:02 wengmankai

先选websocket. socket.io等你熟悉了再去踩坑

whtiehack avatar Feb 07 '25 03:02 whtiehack

使用websocket 可以正常跑起来,感谢!

wengmankai avatar Feb 07 '25 03:02 wengmankai

你好,我是啊铠,你的来信我已收到。谢谢, 辛苦了~

wengmankai avatar Jul 28 '25 02:07 wengmankai