Can't get authorization header from middleware
Answered
Green-breasted Mango posted this in #help-forum
Green-breasted MangoOP
Hi, im currently trying to send auth header from express server using res.setHeader('Authorization'. 'key') then res.redirect(). Redirecting to front end route. Then when im trying to read the headers from the request doesn't contain it. Any clue about this issue? Thank you
Answered by Green-breasted Mango
Was the cookie options, i had sameSite: 'strict'. i changed to 'lax' now works well
2 Replies
When client get redirect response from server, its headers are included in response headers, not request headers.
Green-breasted MangoOP
Was the cookie options, i had sameSite: 'strict'. i changed to 'lax' now works well
Answer