Handling Cross-Origin Cookies with ExpressJS
August 23, 2023Send cookies across origins in Express: CORS headers, the cors middleware with credentials, and httpOnly, secure and sameSite settings for dev and production.
Send cookies across origins in Express: CORS headers, the cors middleware with credentials, and httpOnly, secure and sameSite settings for dev and production.
Quick Mongoose reference: the connection URI, connecting, defining schemas and models, common model methods, and relating documents with refs and populate.
Build a todo app with Express, EJS and Mongoose from scratch: connect MongoDB with dotenv, add morgan and method-override, seed todos, then deploy to Heroku.
Express quick reference covering project setup, middleware like morgan and cors, routes, the req and res objects, templates, routers, databases and API calls.
A beginner Express walkthrough: what a web server is, serving static files, EJS templates and partials, building a todo list you can cross off, and deploying.