Hi,
Just to confirm, if my backend includes the following code:
export function user(userId){
return fetch(${server}/user/${userId}
,
{
method: ‘GET’,
headers: headers
})
.then((httpResponse)=>{
if(httpResponse.ok){
return Promise.resolve(httpResponse.json());
}
return Promise.reject(“Fetch did not succeed :(”);
})
.catch(err => console.log(err));
}
Can the client see the headers of the request?