Send a set-cookie header to a redirect url in node.js

后端 未结 2 1856
情话喂你
情话喂你 2021-02-07 05:03

I am using node.js request module to fetch an id_token from an API. After fetching that id_token I want to send a redirect uri response with a se

2条回答
  •  再見小時候
    2021-02-07 05:55

    in express 4.16.3 , you must set

    res.cookie()

    before

    res.redirect()

    and it works for me, without error

提交回复
热议问题