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

Cross origin issue #16

Open
nanosiddik opened this issue Jul 4, 2020 · 1 comment
Open

Cross origin issue #16

nanosiddik opened this issue Jul 4, 2020 · 1 comment

Comments

@nanosiddik
Copy link

I am getting the this error "Access to XMLHttpRequest at 'http://localhost:8085/websocket/live-mine/info?t=1593887703692' from origin 'http://localhost:8080' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values 'http://localhost:8080, http://localhost:8080', but only one is allowed." actually i have deployed first service and eureka in one AWS machine and second ,notification deployed in another AWS machine and gateway is running in local and i am accessing from another web application in local. I have created a cross filter class . for rest api its working fine but for websocket its not working i am getting the mentioned error . I have been trying for the last two week . till now not solved .Please help me .

@nanosiddik
Copy link
Author

First service, second service,notification service (websocket stomp with sock js) ,spring cloud gateway,web for accessing . every service deploy different machine in cloud aws

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

No branches or pull requests

1 participant