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 12:13:34 UTC
[jira] [Created] (THRIFT-1657) Chrome browser sending OPTIONS
method before POST in xmlHttpRequest
Shantanu Choudhary created THRIFT-1657:
------------------------------------------
Summary: 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
[jira] [Commented] (THRIFT-1657) Chrome browser sending OPTIONS
method before POST in xmlHttpRequest
Posted by "Jake Farrell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-1657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13422316#comment-13422316 ]
Jake Farrell commented on THRIFT-1657:
--------------------------------------
please see http://thrift.apache.org/docs/HowToContribute/ for submitting a patch
> 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
[jira] [Updated] (THRIFT-1657) Chrome browser sending OPTIONS
method before POST in xmlHttpRequest
Posted by "Shantanu Choudhary (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (THRIFT-1657) Chrome browser sending OPTIONS
method before POST in xmlHttpRequest
Posted by "Shantanu Choudhary (JIRA)" <ji...@apache.org>.
[ 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