1

Is there a method to fetch the response cookies with fetch? For instance, in python there is

session = requests.session();
session.cookies;

Is there anything similar to this using fetch?

noobcode0000
  • 213
  • 6
  • 17
  • maybe: `fetch(url).then(r => console.log(r.headers.get('set-cookie')));` – Roland Starke Nov 12 '21 at 21:40
  • 1
    Does this answer your question? [How to get all set-cookie headers from node-fetch?](https://stackoverflow.com/questions/53826792/how-to-get-all-set-cookie-headers-from-node-fetch) – esqew Nov 13 '21 at 02:05

0 Answers0