404 error
Unanswered
Birman posted this in #help-forum
BirmanOP
this code gives a html response and 404 error if dont include header and gives a json response when i include headers in the fetch options can anyone explain how?
2 Replies
Its most likely due to you trying to fetch the currentUser. That probably needs the cookie/session which is only passed around when you explicitly send the headers