Pass cookies with axios or fetch requests - Code with Hugo - Mar 4th 2019
Hot off the press
Pass cookies with axios or fetch requests: When sending requests from client-side JavaScript, by default cookies are not passed, here's how to enable them in the axios
module and using the fetch
API.
If you missed it
From AngularJS to Vue.js, CommonJS and Jest
Parse POST/PATCH/PUT request JSON body with Express and no dependencies: I discovered that Express 4.16+ had a built-in JSON body-parser express.json()
, here's a post about how to use it (and ditch body-parser 🤞).
A guide to Express request and response mocking/stubbing with Jest or sinon.
From the web
Starting Over Might Be Better Than You Think.
Don't measure unit test coverage
Move fast and migrate things: how we automated migrations in Postgres
Don't miss what's next. Subscribe to Code with Hugo: JS & Node.js in Prod: