Questions tagged «cross-origin-read-blocking»

16
跨域读取阻止(CORB)
我已经使用Jquery AJAX调用了第三方API。我在控制台中收到以下错误: 跨域读取阻止(CORB)阻止了MIME类型为application / json的跨域响应MY URL。有关更多详细信息,请参见https://www.chromestatus.com/feature/5629709824032768。 我对Ajax调用使用了以下代码: $.ajax({ type: 'GET', url: My Url, contentType: 'application/json', dataType:'jsonp', responseType:'application/json', xhrFields: { withCredentials: false }, headers: { 'Access-Control-Allow-Credentials' : true, 'Access-Control-Allow-Origin':'*', 'Access-Control-Allow-Methods':'GET', 'Access-Control-Allow-Headers':'application/json', }, success: function(data) { console.log(data); }, error: function(error) { console.log("FAIL....================="); } }); 当我在Fiddler中签入时,我得到了响应数据,但没有获得Ajax成功方法的响应。 请帮帮我。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.