Cross ajax domain not working with redirect in mobile safari

I am experiencing this problem mentioned in this WebKit error: https://bugs.webkit.org/show_bug.cgi?id=57600

The problem with mobile Safari, it works with Google Chrome and Firefox. The same code in which I redirect the request to the ajax cross domain works with Google Chrome and Firefox, but not with mobile Safari.

As far as I understand, the error was registered in WebKit version 525: https://bugs.webkit.org/show_bug.cgi?id=57600

And I decided in WebKit version 528 (I realized this, since another regression error was opened in the same release): https://lists.webkit.org/pipermail/webkit-unassigned/2012-April/429252.html

But with my mobile Safari on the iPhone, the redirection is rejected, although I have mobile Safari with WebKit version 534 (a much later version).

Has anyone experienced this behavior, and is there a solution for this?

Note. Cross-Domain Headers (CORS) defined (since it works on Google Chrome and Firefox).

Edit: The same problem with Safari for Windows.

+5
source share
1 answer

I ran into the same issue with multiple mobile browsers ( Safari, Chrome/ Dolphin on Android).

I have no solution for 302, but I found a workaround:

  • the Java framework we use can redirect or forward responses POST, so we changed it to forwards.

200, AJAX ( jQuery) .

, .

0

All Articles