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

Shantanu Choudhary updated THRIFT-1657:
---------------------------------------

    Attachment: thrift-0-9-preflight-request.patch

Patch for handling preflight request from chrome browser.
                
> 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
>             Fix For: 0.9
>
>         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: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to