Trying to get then send a cookie using react and fetch
问题 I've been trying to implement some authentication component in my app for a few hours now, and I still don't understand some of the things that are happening. Basically, I'd like to send a POST request containing some credentials to my API , which sends me a cookie back with a token if the credentials worked. Then, the cookie should be included in the headers of all future requests to my API (which I believed was automatic). server.js (my API is a mockup for now, with JSON files) ... app.post