Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8BED2D16E for ; Mon, 12 Nov 2012 13:09:14 +0000 (UTC) Received: (qmail 3520 invoked by uid 500); 12 Nov 2012 13:09:14 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 3482 invoked by uid 500); 12 Nov 2012 13:09:13 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 3438 invoked by uid 99); 12 Nov 2012 13:09:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2012 13:09:12 +0000 Date: Mon, 12 Nov 2012 13:09:12 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: <26825750.100181.1352725752585.JavaMail.jiratomcat@arcas> In-Reply-To: <912179661.70907.1352153652441.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (CXF-4615) OAuthRequestFilter.java should ignore HTTP OPTIONS verb MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-4615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13495239#comment-13495239 ] Sergey Beryozkin commented on CXF-4615: --------------------------------------- Hi Steven, no problems at all, note that you can also have: {code:java} @OPTIONS @LocalPreflight public Response handlePreflightRequest() { } {code} if preferred. This code will specifically deal with analyzing the CORS OPTIONS request and preparing the response. This is a bit intrusive for the application code but allows to do the more sophisticated CORS Preflight processing which may not be possible by using the CORS filter only. Note I've updated OAuth filter to support the code above after you opened this JIRA. Can I resolve it as Won't Fix or Not a Problem now ? > OAuthRequestFilter.java should ignore HTTP OPTIONS verb > ------------------------------------------------------- > > Key: CXF-4615 > URL: https://issues.apache.org/jira/browse/CXF-4615 > Project: CXF > Issue Type: Bug > Components: JAX-RS Security > Affects Versions: 2.6.2, 2.7.0 > Reporter: Steven Tippetts > Priority: Critical > > In handleRequest of OAuthRequestFilter.java at line 54 something similar to the following should be added: > if (((String)m.get(Message.HTTP_REQUEST_METHOD)).equals("OPTIONS")) return null; > This will skip any HTTP OPTIONS verb requests. I'm getting the OPTIONS verb request when using an OAuth 2 javascript client. > I haven't found a way in the configuration to specify that OPTIONS requests should skip this filter. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira