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

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=13422162#comment-13422162 ] 

Shantanu Choudhary commented on THRIFT-1657:
--------------------------------------------

I have created this repository[1] with tweaked THttpServer.cpp to work with chrome and firefox.

[1]. https://github.com/baali/thrift_js
                
> 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
>
>
> 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