Powiel możliwe:
The right JSON content type?prawidłowy typ MIME dla JSON?
mam problem na json jest wyświetlanie tylko "Content-Type: text/html" Jestem testowania na localhost i mojego kodu online jest
header('Access-Control-Allow-Origin: *');
header('Content-Type: application/javascript');
//header('Content-type: text/javascript');
//header('Content-type: application/json');
dlaczego nie używasz 'application/json'? – think123
odkomentuj ostatnią linię – diEcho
[duplikat] (http://stackoverflow.com/q/477816/1077789) – Isuru