cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <>
Subject [jira] [Commented] (CXF-4615) should ignore HTTP OPTIONS verb
Date Mon, 12 Nov 2012 13:09:12 GMT


Sergey Beryozkin commented on CXF-4615:

Hi Steven, no problems at all, note that you can also have:

public Response handlePreflightRequest() {

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

Can I resolve it as Won't Fix or Not a Problem now ?

> should ignore HTTP OPTIONS verb
> -------------------------------------------------------
>                 Key: CXF-4615
>                 URL:
>             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 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:

View raw message