KEYCLOAK-3017 Expose Location header in cors request to admin endpoint

This commit is contained in:
Stian Thorgersen 2016-10-18 21:27:20 +02:00
parent d941e07169
commit a33997976f

View file

@ -211,7 +211,7 @@ public class AdminRoot {
logger.debug("authenticated admin access for: " + auth.getUser().getUsername()); logger.debug("authenticated admin access for: " + auth.getUser().getUsername());
} }
Cors.add(request).allowedOrigins(auth.getToken()).allowedMethods("GET", "PUT", "POST", "DELETE").auth().build(response); Cors.add(request).allowedOrigins(auth.getToken()).allowedMethods("GET", "PUT", "POST", "DELETE").exposedHeaders("Location").auth().build(response);
RealmsAdminResource adminResource = new RealmsAdminResource(auth, tokenManager); RealmsAdminResource adminResource = new RealmsAdminResource(auth, tokenManager);
ResteasyProviderFactory.getInstance().injectProperties(adminResource); ResteasyProviderFactory.getInstance().injectProperties(adminResource);