Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Access to XMLHttpRequest at 'http://localhost:8080/socket.io/?EIO=3&transport=polling&t=MgBuvgw' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. #1299

Closed
imarun577 opened this issue May 6, 2019 · 5 comments
Labels
question Further information is requested

Comments

@imarun577
Copy link

imarun577 commented May 6, 2019

I am trying to connect a angular with laravel web socket . is it possible ?

@imarun577 imarun577 changed the title Access to XMLHttpRequest at 'http://localhost:8080/socket.io/?EIO=3&transport=polling&t=MgBuvgw' from origin 'http://localhost:4200' has been blocked by CORS policy Access to XMLHttpRequest at 'http://localhost:8080/socket.io/?EIO=3&transport=polling&t=MgBuvgw' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. May 6, 2019
@knoxcard
Copy link

knoxcard commented May 8, 2019

are you in a development environment or production? In development, dont use localhost, create a domain name.

https://sangams.com.np/setup-web-server-domain-xampp/

@harshan89
Copy link

same issue no solution

@alexisqc92
Copy link

Did someone was able to find a solution?

@darrachequesne
Copy link
Member

Please see my answer here: #641 (comment)

@darrachequesne darrachequesne added the question Further information is requested label Nov 7, 2020
@darrachequesne
Copy link
Member

For future readers, please see the documentation here: https://socket.io/docs/v3/handling-cors/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants