on-internet
← Community

CORS problems with Springboot and Angular Websocket

Stack Overflow ·

I have two services to build a Spring Boot application. But I always get CORS problems like this: Access to XMLHttpRequest at '.../websocket-cr/info?t=1581585481804' from origin'http://localhost:8080' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials. Springboot service on 8082 public void registerStompEndpoints(StompEndpointRegistry registry) { registry.addEndpoi

Comments

Sign in or sign up to comment and upvote.

No comments yet.