jsonp is called instead of json in cross domain requests#329
jsonp is called instead of json in cross domain requests#329ubershmekel wants to merge 1 commit into
Conversation
|
If you are trying to post a data. you could not do it So, You Can use get method in regards with the cross domain, Trying using crossdomain:true, in your ajax call |
|
The jsonp request in question happens on my site for example here http://www.redditp.com/r/qwer/awwasdfasdfasdfa/ note that I do give an error after a timeout though the 404 arrives before the alert pops up. Will crossdomain:true help me catch and handle the 404 event? |
|
U can Very handle the 404 Event. |
|
So long as you are in here, could you separate each of those Also, have you signed the CLA? http://contribute.jquery.org/CLA/ |
|
Fixed that and just signed. I'll verify the 404's catchable with crossdomain:true hopefully in ~10 hours. |
|
I think this is too vague/incomplete, and I'm not quite sure how to fix it. In which cases does it force a "jsonp request"? Did you verify the catchable 404s? You can make an xhr post or get using CORS and it won't try to use jsonp. You would need to set the xhrFields: {
withCredentials: true
} |
There was a problem hiding this comment.
this should be on the previous line.
|
@ubershmekel - do you have any updates on this issue specifically for @kswedberg's comment? It seems like one of those awkward edge cases we don't want to document unless we can clearly explain the situation it occurs in. |
|
@ubershmekel This PR needs some updates. See comments above. It would be nice if you could do them? |
|
Fixed the complaints and fixed the merge. From my testing |
|
Thanks @ubershmekel. What do we think @gnarf @kswedberg? |
|
I definitely like this formatting better. For this:
I'd change it to something like:
|
|
ping @ubershmekel |
|
Sorry guys, I was abroad for a few weeks. It's a bit of a pain that every time I come back to this tiny change the pull request has merge conflicts. I do like the proposed wording. If I fix it per @dmethvin would that be the final iteration? |
For now feel free to not care about merge conflicts. I can take care of them while merging. |
Relevant li's have newlines between them now.
|
Rebased with the new wording. |
|
Whoa, sorry this got buried. LGTM! |
There was a problem hiding this comment.
"xml"
I wonder if these shouldn't be in <code> elements. For the rest this LGTM!
|
I'm going to make that trivial change myself and land this one. Thanks for your hard work, @ubershmekel, and sorry for it taking too long :) |
This was surprising to me and I'm still not sure how to handle cross-domain jsonp 404 responses.