Mögliche Duplizieren:
The right JSON content type?der richtige MIME-Typ für JSON?
ich habe Problem auf json es nur angezeigt wird "Content-Type: text/html" Ich teste auf localhost und mein Online-Code ist
header('Access-Control-Allow-Origin: *');
header('Content-Type: application/javascript');
//header('Content-type: text/javascript');
//header('Content-type: application/json');
Warum verwenden Sie nicht 'application/json'? – think123
letzte Zeile auskommentieren – diEcho
[Duplizieren] (http://Stackoverflow.com/q/477816/1077789) – Isuru