0

For keeping session information as cookies and having CORS along with it, XHR has withCredentials option along with Access-Control-Allow-Credentials response Header to make the browser send the cookies for each requests.

I would like to achieve the same (withCredentials) in npm-request package. Is there any way for this ? :)

Thank you

fahimalizain
  • 844
  • 8
  • 15

1 Answers1

0

Just pass withCredentials: true in request options and your module bundler will take care of the rest :)

fahimalizain
  • 844
  • 8
  • 15