What you want is not possible. However you can always retrieve the value from the cookie and put that in the header right? Or am I missing something?
Feb 5, 2018
3
Level 1
API authentication by using "secure cookie attribute" instead of "Header's Authorisation".
By using Passport currently we authenticate the REST API from the "Authorisation attribute in the header which is in the incoming request", is there any other way that to authenticate the REST API from the "cookie attribute" ?
Means, I want to authenticate the API request where "Bearer-Access-Token" is in the "cookie attribute" instead of "Authorisation attribute".
is this possible ?
Please or to participate in this conversation.