fetch(url, {method, mode : "cors", headers}).then(function (response) {
return response.json()
})
.then(function (data) {
console.log('data', data)
})
const response = await fetch(url, {method, mode : "cors", headers})
const result = await response.json();
console.log(result)