そのため、次のjQueryコードを使用してStackExchangeAPIにリクエストを送信しようとしています。
$.ajax({
type: 'POST',
url: 'http://api.stackoverflow.com/1.1/stats',
dataType: 'jsonp',
success: function() { console.log('Success!'); },
error: function() { console.log('Uh Oh!'); }
});
しかし、FireFoxまたはChromeのいずれかで自分のマシンでファイルを開き、リクエストを行うと、次のエラーが発生します。
Resource interpreted as Script but transferred with MIME type application/json.
Uncaught SyntaxError: Unexpected token :
Uh Oh!
何が起こっているのか分かりません。Stack Exchange APIがその応答をGzipすることを知っていますが、これにより問題が発生しますか?