Вот тест Arc:
integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
crossorigin="anonymous">
let urlBase = 'http://54.210.29.209';
let urlEnterEmail = '/api/v1/users/checkEmail';
$(document).ready(function() {
$.ajax(
{
method: "POST",
crossDomain: true,
url: urlBase + urlEnterEmail,
xhrFields: {withCredentials: true},
headers: {
"Access-Control-Request-Headers": "x-requested-with",
"Content-Type": "application/json",
"Platform": "web",
"Build": 2
},
contentType: "application/json; charset=utf-8",
dataType: 'json',
data: {"email": "john@doe.com"}
}
)
.done(function (response) {
console.log('done!');
console.log(response);
})
.fail(function (xhr, status) {
console.log('fail!!!');
//console.log(xhr);
console.log(status);
});
});
Наконец, ошибка:
Я читаю немного о корре, но не работает. Ресурсы, которые я нашел, являются следующими, и все же я не знаю, является ли я тем, что я с проблемой или код первого.>
Подробнее здесь: https://stackoverflow.com/questions/456 ... ry-request
Мобильная версия