diff --git a/services/src/main/java/org/keycloak/services/resources/TokenService.java b/services/src/main/java/org/keycloak/services/resources/TokenService.java index d3a262e5db..580473b7b6 100755 --- a/services/src/main/java/org/keycloak/services/resources/TokenService.java +++ b/services/src/main/java/org/keycloak/services/resources/TokenService.java @@ -435,7 +435,7 @@ public class TokenService { logger.debug("accessRequest SUCCESS"); AccessTokenResponse res = accessTokenResponse(realm.getPrivateKey(), accessCode.getToken()); - return Cors.add(request, Response.ok(res)).allowedOrigins(client).build(); + return Cors.add(request, Response.ok(res)).allowedOrigins(client).allowedMethods("POST").build(); } protected AccessTokenResponse accessTokenResponse(PrivateKey privateKey, SkeletonKeyToken token) {