# **Week 05 - 5.2 | Middlewares and Cors**


## [Notes / Slides Link](https://petal-estimate-4e9.notion.site/HTTP-Deep-dive-d59b6336fa5a46daa56c21063578d400)


## Article/Blogs Link:
- [**Express Explained with Examples - Installation, Routing, Middleware, and More**](https://www.freecodecamp.org/news/express-explained-with-examples-installation-routing-middleware-and-more/) - **Recommended - Must Read**
- [**Middleware in Express.js**](https://dev.to/m__mdy__m/middleware-in-expressjs-4b4)
- [**Getting started with basics of routes and middleware in Express.JS**](https://medium.com/@patilchetan2110/getting-started-with-basics-of-routes-and-middleware-in-express-js-90db1b8c2252)
- [**Different types of middlewares in Express.js**](https://medium.com/@alirezakargar/what-app-use-method-do-in-express-js-7ea533d55b4e)
- [**What Does `app.use(express.json())` Do in Express?**](https://masteringjs.io/tutorials/express/express-json)
- [**CORS in Node.js with Express**](https://saragam.medium.com/cors-in-node-js-with-express-99b355e93def)
- [**How to allow CORS in node.js?**](https://stackoverflow.com/questions/70060783/how-to-allow-cors-in-node-js)
- [**How to Fetch Data from an API Using the Fetch API in JavaScript**](https://www.freecodecamp.org/news/how-to-fetch-data-from-an-api-using-the-fetch-api-in-javascript/)
- [**How to fetch an api using axios?**](https://stackoverflow.com/questions/74284046/how-to-fetch-an-api-using-axios)
- [**Axios vs. Fetch API: Selecting the Right Tool for HTTP Requests**](https://medium.com/@johnnyJK/axios-vs-fetch-api-selecting-the-right-tool-for-http-requests-ecb14e39e285)

## Official Website Link:
- [**Node.js**](https://nodejs.org/en)
- [**Express**](https://expressjs.com/)
- [**Express Middleware**](https://expressjs.com/en/guide/using-middleware.html)
- [**NPM**](https://www.npmjs.com/)
- [**body-parser**](https://expressjs.com/en/resources/middleware/body-parser.html)
- [**NPM body-parser**](https://www.npmjs.com/package/body-parser)
- [**Axios**](https://axios-http.com/docs/intro)

- [**Express uses `bodyParser` under the hood**](https://github.com/expressjs/express/blob/master/lib/express.js#L78C16-L78C26)