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

Chrome browser sending OPTIONS method before POST in xmlHttpRequest

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8
    • Fix Version/s: 0.9.1
    • Component/s: C++ - Library
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: