Adding CORS, Express, and Morgan Middleware

Learn how to add the cors, express and morgan middleware to a Node.js application.

What is middleware?

In the Express framework, middleware is a function that has access to the request object (req), the response object (res), as well as the next function (next()) in the application’s request-response cycle.

Get hands-on with 1200+ tech skills courses.