X
X
XelbyB2018-11-02 09:22:14
CORS
XelbyB, 2018-11-02 09:22:14

How to get data from api-ip.fssprus.ru using ajax?

I use this method:
$.ajax({
type: 'get',
contentType: 'application/json; charset=UTF-8',
dataType : "jsonp",
crossDomain: true,
url: url,
xhrFields: {
withCredentials: true
} ,
headers: {
'Access-Control-Allow-Credentials' : true,
'Access-Control-Allow-Origin':'*',
'Access-Control-Allow-Methods':'GET',
'Access-Control-Allow -Headers':'application/json',
'X-Requested-With': 'XMLHttpRequest'
},
success: function(data) {
console.log(data);
},
error: function(error) {
console.log( "FAIL....=================");
}
});
what is returned to me: Cross-Origin Read Blocking (CORB) blocked cross-origin response https://api-ip.fssprus.ru/api/v1.0/search/physical... with MIME type application/json. See https://www.chromestatus.com/feature/5629709824032768 for more details.
url = ' https://api-ip.fssprus.ru/api/v1.0/search/physical... ';
Please help with advice on how to fix this.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question