0

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,062
  • 1
  • 7
  • 26
Teejaay
  • 3
  • 2

1 Answers1

1

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
  • 739
  • 7
  • 12