Open kaansoral opened 9 years ago
Hi!
That IS strange indeed...
I just ran this simple test which completed successfully on both iOS sim and device (wrapped it inside a function, called it by the tap of a button):
$.getJSON( "http://httpbin.org/get", function( data ) {
alert(JSON.stringify(data));
});
Usually a failing server request with WKWebview is because the server doesn't support CORS, but that doesn't explain your 200 return code.
Can you try your app with that little code sample and see if it works?
Just reproduced the issue
I also added this time, it didn't change anything
Tested your code, it works :) - so the issue is probably with the server as you suggested, it's the development server of appengine
I generally set up specific/simple node proxies when things like this happen, do you have any suggestions?
I'm guessing the client is discarding the request as CORS headers are missing from the responses, I should research the issue further
Thanks a lot for the suggestion
This is very absurd, the app runs well, however a $.ajax / json request fails
{readyState:0,status:0,statusText:"error"} is the error response
I see the request on the server, the response is an 200, yet the request fails on client side with this WKWebView plugin
Any ideas? (The issue blocked my usage/tests as it's the initial config loader call)