i can't take it, anything help please guys. I already use response.headers
but it doesn't give my token.
it's my code
fetch(`${config.BASE_URL}/login`, {
method: 'POST',
headers: h,
mode: 'cors',
body: JSON.stringify(
request
),
})
.then(response => {
console.log(response)
console.log("response", response.headers.get("Token"))
return response.text();
})
.then(data => {
console.log("data", data)
})
.catch(error => console.error('Error:', error))