The ASP.NET Core team has written a number of built-in middleware to work for wide variety of requirements. Some of the built-in middleware are as follows:
- Authentication: This is used for authentication support, such as login, logout, and so on.
- CORS: This configures Cross-Origin Resource Sharing that is used for web API projects.
- Routing: This defines and constrains request routes. Chapter 5, Implementing Routing, is dedicated to routing.
- Session: This provides support for managing user sessions.
- Static Files: This supports to serve static files and directory browsing as part of wwwroot.