Die folgende JSONP JQuery (v1.10.2) -Aufruf funktioniert auf allen Browsern außer Safari: -JSONP Fehler auf Safari
$.ajax({
cache: false,
type: 'GET',
url: userExistsUrl,
dataType: 'json',
error: function (jqXHR, textStatus, errorThrown) {
var errText = 'We are not able to process your request at the moment (' + textStatus + ', ' + errorThrown + ')';
console.error('HTTP response : ' + jqXHR.status);
console.error(errText);
displayError(errText);
},
success: function (xml) { }
});
On Safari die Fehlerfunktion aufgerufen wird und die Variable textStatus
enthält die Zeichenfolge "Fehler". Wenn ich jedoch die Entwickler-Menüoption 'Deaktivieren von Ursprungsbeschränkungen' auswähle, funktioniert der Anruf.
Da dies nur ein Standard-JSONP-Aufruf ist, wie kann ich mit Safari arbeiten, ohne die Entwickleroption aufzurufen?
sieht aus wie ein json Anruf zu mir, JSONP nicht – epascarello