Unable to set cookie in browser using request and express modules in NodeJS

后端 未结 2 901

I am having a client and a server node written in express. The client communicates with server using request module, the server will send response back to the client. Here i

2条回答
  •  死守一世寂寞
    2021-01-20 21:29

    response.cookies is to SET cookies, if you want to GET cookies from a response object you will have to rely on response.headers['set-cookie']

提交回复
热议问题