Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Middleware in a MERN Stack Project - REST API Tutorial

Dave Gray via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This tutorial teaches how to apply built-in, custom, and third-party middleware in a Node.js and Express REST API for a MERN stack project. It covers request logging, custom error handling, cookie parsing, and CORS configuration.

Syllabus

Intro
Welcome
What is Middleware?
Quick Corrections & Starter Code
Built-in Middleware
Custom Log Middleware
Custom Error Handler Middleware
cookie-parser 3rd party middleware
Understanding CORS
Setting up CORS middleware
Securing CORS for our MERN Stack Project

Taught by

Dave Gray

Reviews

Start your review of Middleware in a MERN Stack Project - REST API Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.