No ‘Access-Control-Allow-Origin’ with Spring Cloud API Gateway and OAuth2 Server
I’m facing a CORS issue when using Spring Cloud API Gateway along with a Spring Security OAuth2 server. My frontend application running on http://localhost:4200/ is blocked due to a missing Access-Control-Allow-Origin header in the response.
“has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.”