node-wot
node-wot copied to clipboard
Setting cookie from Response Header Set-Cookie
Me and @egekorkan encountered with a case where we need to send session information to interact with a Thing. Therefore we thought, the token can be sent as a cookie, when security scheme is defined as below. In case there are no problems with this kind of logic, I can implement it.
"securityDefinitions": {
"bearer1": {
"scheme": "bearer",
"in": "cookie",
"name": "session_name"
}
},
"security":` "bearer1",