koajs/cors

How to resolve socket cors

yangxyo opened this issue · 1 comments

I use koa-socket-2.

'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

@yangxyo, koa-socket-2 build on top of socket.io and as you can see here you should pass cors as option to socket.io you can see that here with koa-socket-2.