none
CORS Support Broken

    Question

  • We are making an OPTIONS request to the Bing API so we can execute a search query in our client code. Here's the request:

    OPTIONS https://api.datamarket.azure.com/Data.ashx/Bing/Search/Web?Query=%27red+site%3Awww.facebook.com%27&Options=%27EnableHighlighting%27&$top=30 HTTP/1.1
    Host: api.datamarket.azure.com
    Access-Control-Request-Method: GET
    Origin: https://test.friendsource.com
    Access-Control-Request-Headers: accept, authorization
    Accept: */*
    Accept-Encoding: gzip,deflate,sdch
    Accept-Language: en-US,en;q=0.8

    Since sometime 11/4/2013, this call stopped returning the correct headers to allow our call to succeed. Here's what we get back now:

    HTTP/1.1 200 OK
    Allow: OPTIONS, TRACE, GET, HEAD, POST
    Server: Microsoft-IIS/8.0
    Public: OPTIONS, TRACE, GET, HEAD, POST
    X-Powered-By: ASP.NET
    Date: Wed, 06 Nov 2013 21:34:56 GMT
    Content-Length: 0

    The response is missing the requisite header 

    Access-Control-Allow-Origin: *

    ...causing all CORS requests to fail. This means that Bing Search is currently unusable from any web browser unless traffic is rerouted through the server. 

    Please provide an update a.s.a.p. this is critical path functionality for our (many) businesses. 

    Sincerely,

    Bryan Garretson


    P.S. - this happened about a month ago and it seemed to clear itself out within about an hour. 
    Wednesday, November 06, 2013 9:46 PM

Answers

  • Folks, we [the Marketplace Team] have just rolled out a fix for this issue and OPTIONS queries should again be working as expected. Please take a look and let us know if there are any further issues!
    Monday, November 11, 2013 9:17 PM
    Owner

All replies

  • Hi Bryan,

    I apologize for large inconvenience this has caused. I suggest you could try Azure support channel:

    Please contact support team by creating a support ticket at http://www.windowsazure.com/en-us/support/contact/
     
    Or if that doesn't work because you don't have an active subscription you will need to contact general customer support to have them create a support ticket for you http://support.microsoft.com/gp/customer-service-phone-numbers?wa=wsignin1.0

    Any question, please free let me know.

    Thanks,

    Regards,

    Will 


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, November 07, 2013 8:38 AM
    Moderator
  • We're having the same issue with service outages due to CORS support. The last answer is hardly helpful and I did call Microsoft Service who were clueless and did not understand the issue. I was asked to refresh my browser and restart my computer! For Real?!

    That being said, this issue need to be escalated and resolved. I presume a lot many apps might be suffering outages as a result. There's also a question on stackoverflow which seems to suggest that the only solution for now is to move the calls to the API into the server-side code. 

    I don't know about anyone else but that is not a trivial task for us. Please resolve this immediately!

    Thursday, November 07, 2013 8:56 AM
  • Sorry. The stackoverlflow post is @ http://stackoverflow.com/questions/19820929/cannot-get-ajax-cors-request-in-jquery-to-work
    Thursday, November 07, 2013 8:56 AM
  • I don't need anything from Support, I need this bug fixed. I've given you a reproduce-able behavior and unless I and other responders to this thread are the only people out there consuming the Bing API this is affecting a lot of people. It would be in your best interests to get this elevated to the product team quickly, before people like ourselves shift to another solution for our search infra.
    Thursday, November 07, 2013 6:37 PM
  • Folks, FYI, the Marketplace team is currently looking into the issue.
    Friday, November 08, 2013 1:39 AM
    Owner
  • We are working on fixing this bug and we'll notify on timeframes soon.

    Thanks,

    Max

    Friday, November 08, 2013 2:37 AM
    Owner
  • Folks, we [the Marketplace Team] have just rolled out a fix for this issue and OPTIONS queries should again be working as expected. Please take a look and let us know if there are any further issues!
    Monday, November 11, 2013 9:17 PM
    Owner
  • The fix tested good for us, thanks for taking care of this.
    Monday, November 11, 2013 10:54 PM