From ac29db51e56b7dc9c5a26029ee8205f6a8820185 Mon Sep 17 00:00:00 2001 From: Bill Burke Date: Tue, 9 Sep 2014 12:51:55 -0400 Subject: [PATCH] nolog CORS exception --- .../java/org/keycloak/services/resources/admin/AdminRoot.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/src/main/java/org/keycloak/services/resources/admin/AdminRoot.java b/services/src/main/java/org/keycloak/services/resources/admin/AdminRoot.java index ee94a5923c..0959e70d6d 100755 --- a/services/src/main/java/org/keycloak/services/resources/admin/AdminRoot.java +++ b/services/src/main/java/org/keycloak/services/resources/admin/AdminRoot.java @@ -3,6 +3,7 @@ package org.keycloak.services.resources.admin; import org.jboss.logging.Logger; import org.jboss.resteasy.spi.HttpRequest; import org.jboss.resteasy.spi.HttpResponse; +import org.jboss.resteasy.spi.NoLogWebApplicationException; import org.jboss.resteasy.spi.NotFoundException; import org.jboss.resteasy.spi.ResteasyProviderFactory; import org.jboss.resteasy.spi.UnauthorizedException; @@ -181,7 +182,7 @@ public class AdminRoot { if (request.getHttpMethod().equalsIgnoreCase("OPTIONS")) { logger.debug("Cors admin pre-flight"); Response response = Cors.add(request, Response.ok()).preflight().allowedMethods("GET", "PUT", "POST", "DELETE").auth().build(); - throw new WebApplicationException(response); + throw new NoLogWebApplicationException(response); } AdminAuth auth = authenticateRealmAdminRequest(headers);