Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1657

Chrome browser sending OPTIONS method before POST in xmlHttpRequest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8
    • 0.9.1
    • C++ - Library
    • None
    • Linux

    Description

      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/

      Attachments

        1. thrift-0-9-preflight-request.patch
          1 kB
          Shantanu Choudhary

        Activity

          People

            roger Roger Meier
            baali Shantanu Choudhary
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: