KEYCLOAK-1564: Add CORS-Headers to token requests by password credentials

This commit is contained in:
Gregor Tudan 2015-07-14 08:22:08 +02:00
parent aeddf2a860
commit c8c0d0e804

View file

@ -356,7 +356,7 @@ public class TokenEndpoint {
event.success(); event.success();
return Response.ok(res, MediaType.APPLICATION_JSON_TYPE).build(); return Cors.add(request, Response.ok(res, MediaType.APPLICATION_JSON_TYPE)).auth().allowedOrigins(client).allowedMethods("POST").exposedHeaders(Cors.ACCESS_CONTROL_ALLOW_METHODS).build();
} }
} }