Azure Spring Apps
An Azure platform as a service for running Spring Boot applications at cloud scale. Previously known as Azure Spring Cloud.
124 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a Spring boot application and Angular in a same project. I have no problem redirecting to Azure SSO Login https://login.microsoftonline.com/ BUT when I trigger the log out link of the application to /common/oauth2/v2.0/logout endpoint, I encountered MissingAllowOriginHeader CORS error in the request in the Status using the Network in the Chrome devtools.
The SSO logout is invoked from a Restcontroller endpoint using the following code snippet
@GetMapping(value = "auth/logout")
@CrossOrigin(origins = "*")
public String logoutUser(HttpServletRequest request, HttpServletResponse response) {
invalidateAndUnsubscribe(request);
String logoutUrl = response.encodeRedirectURL(azureService.logoutUrl());
log.info("---- User log out from DSS web and Azure AD app: {}", logoutUrl);
return REDIRECT_KEY + logoutUrl;
}
The first call to logout endpoint in my controller is shown here
Then after redirecting to Azure logout