-
Notifications
You must be signed in to change notification settings - Fork 78
OPTIONS issue #99
Comments
You have an |
Well the same request using jQuery $.get method works fine !? |
They probably have some additional code. Did you test the headers option or anything else from the article? |
Yes they have Access-Control-Allow-Origin: * in the request header ... I wasn't able to add it with qwest |
The That's why I've posted this article about CORS : http://www.html5rocks.com/en/tutorials/cors/ Because it seems you're not understanding well what is happening ^^ |
Is the example you've posted above is the complete code for the request? You have no data or other options set on qwest? |
To well understand what's happening on the request, read this specific section : http://www.html5rocks.com/en/tutorials/cors/#toc-adding-cors-support-to-the-server Furthermore, CORS is activated by your request because it seems you're running the request on a different domain than the resource itself. |
With PHP a simple |
On my ruby script I use :
Without that, jQuery raise an error too ! But here the response after a simple $.get
As you can see, I will copy /paste both jquery and Qwest headers and both answers And yes I use XDomain :) |
I Just found my issue ... Qwest send an OPTIONS ...then my webservice raise a 404 error jQuery (OK)$.get("http://myip/vehicles/search") RequestGET /vehicles/search HTTP/1.1 ResponseHTTP/1.1 200 OK Qwest (NOK)qwest.get("http://myip/vehicles/search") RequestOPTIONS /vehicles/search HTTP/1.1 ResponseHTTP/1.1 404 Not Found |
Yes it's normal. The explanations from a previous issue : #90 |
Yep, adding { cache:true } works for me too ! Thank you for your help ! |
Great! This |
I'm reopening this issue to have a reminder. I need to modify how the qwest's cache is working. |
nice, good luck :) |
Thanks ;) |
Related to this PR : #73 |
I'll just update the doc since |
oh thanks all above, i ve got this problem too and finally i found that i had wrongly spelling |
Raise an error
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource
How can I add
"Access-Control-Allow-Origin: *"
in headers ?The text was updated successfully, but these errors were encountered: