You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Roger Meier (JIRA)" <ji...@apache.org> on 2012/12/23 20:26:13 UTC

[jira] [Resolved] (THRIFT-1657) Chrome browser sending OPTIONS method before POST in xmlHttpRequest

     [ https://issues.apache.org/jira/browse/THRIFT-1657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roger Meier resolved THRIFT-1657.
---------------------------------

    Resolution: Fixed

committed
                
> Chrome browser sending OPTIONS method before POST in xmlHttpRequest
> -------------------------------------------------------------------
>
>                 Key: THRIFT-1657
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1657
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Library
>    Affects Versions: 0.8
>         Environment: Linux
>            Reporter: Shantanu Choudhary
>            Assignee: Roger Meier
>             Fix For: 1.0
>
>         Attachments: thrift-0-9-preflight-request.patch
>
>
> As per part of "Preflighted requests" chrome sends Options request to server to know what methods are allowed[1]. But on server side(THttpServer.cpp), during reading header and parseStatusLine, we have handling for just POST, and hence request is not completed and server throws "Bad Status (unsupported method): OPTIONS" error.
> [1]. http://www.nczonline.net/blog/2010/05/25/cross-domain-ajax-with-cross-origin-resource-sharing/

--
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