1.后端socket.io配置
2.前端连接
const socket = io('domain.com:12345')
3.错误信息
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
相关分类