Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to resolve socket cors #76

Open
yangxyo opened this issue Apr 15, 2021 · 1 comment
Open

How to resolve socket cors #76

yangxyo opened this issue Apr 15, 2021 · 1 comment

Comments

@yangxyo
Copy link

yangxyo commented Apr 15, 2021

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.

@3imed-jaberi
Copy link
Member

@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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants