0
I’m making a request with the function Fetch()
, but I always get the same message, with 204 status:
However, when making the request via POSTMAN, I receive status 200, with the necessary information:
My code is here:
fetch(`URL`, {
method: "GET",
header: {
"Access-token": "xxx",
"Content-Type": "application/json",
},
}
)
.then((response) => {
console.log(response)
})
.catch((err) => {
console.error("Erro: ", err);
});