pinus
pinus copied to clipboard
按照快速入门教程走,点击Test Game Server按钮时出现跨域问题,该如何处理?
通讯协议采用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.
先选websocket. socket.io等你熟悉了再去踩坑
使用websocket 可以正常跑起来,感谢!
你好,我是啊铠,你的来信我已收到。谢谢, 辛苦了~