V
V
Valery2014-11-17 14:22:40
safari
Valery, 2014-11-17 14:22:40

Why does Safari on iPad block GET requests with coordinates?

There is a regular Ajax GET request at the link:
//mallblizko.ru/malls/near/?lat=45.0434377&lon=38.9633671&start=0 Works fine everywhere
. But mobile Safari (iPad) blocks such requests. Tried changing the link, didn't help. If GET parameters contain coordinates, the request is blocked (error code 0).
On the same device, but in chrome everything is fine.
In this case, if you go directly to the link - everything works.
What could be the problem and where does this safari behavior come from?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri, 2014-11-27
@georgeneversleep

iPad 3 16 Gb wifi iOS 8.x. Nothing is blocked, your link opens a page with json.
You need to look in the direction of the headers that you give in response to requests.
I posted an example of a web page where jquery ajax pulls your page. The fact that the API does not work only in mobile Safari (iPhone & iPad) was confirmed.
However, if you change your server to ip.jsontest.com, then the example works in Safari as well.
Source code jsfiddle.net/roma86/e2Lay7w3/14
An example for viewing in a browser jsfiddle.net/roma86/e2Lay7w3/14/embedded/result
If you hook the browser log debug to the iPad, you can get the following log, which says nothing to me, so from here you please yourself:
My guess is either:
or Safari doesn't understand some of the headers the server is returning.
or the Server is blocking something in the headers accompanying requests from Safari.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question