1

Authorization header comes in network as can seen in picture. But it doesn't show in the axios response after I make a login request.

 response = await axios
    .post(apiUrl + "/login", 
    {
        "user": {
            email,
            password
        },
    }
    );   

https://i.stack.imgur.com/5g40o.png https://i.stack.imgur.com/RqMFh.png

It'sNotMe
  • 1,184
  • 1
  • 9
  • 29
Teejaay
  • 31
  • 6

1 Answers1

2

I could find an article over here which says that you need to enable Access-Control-Expose-Headers in your backend app. Also here

Ayyub Kolsawala
  • 809
  • 8
  • 15