KEYCLOAK-1564: Add CORS-Headers to token requests by password credentials
This commit is contained in:
parent
aeddf2a860
commit
c8c0d0e804
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue