fetch('https://mysite.com/api/v1/user/id/', {
mode: 'cors',
credentials: 'include'
})
.then(response => {
if (!response.ok) {
throw new Error('Network response was not ok');
}
return response.json();
})
.then(data => {
console.log(data);
})
.catch(error => {
console.error('There was a problem with the fetch operation:', error);
});
сайт Б должен ответить с правильными заголовками Access-Control-Allow-Credentials и Access-Control-Allow-Origin.
locale-gen ru_RU_ALT.UTF-8
получаю ошибку Error: 'ru_RU_ALT.UTF-8' is not a supported language or locale