Configuring CORS in ASP.NET 2 and ASP.NET Core 2
Learn how to configure CORS for your APIs to secure your web applications by making sure only authorized client applications can consume them, adding an extra layer of security.
What you'll learn
In this modern application era, applications that have the client and the server on the same origin are becoming less and less common. APIs are accessed from multiple clients hosted on different origins. In this course, Configuring CORS in ASP.NET and ASP.NET Core, you will learn how to setup CORS for your APIs so only approved client applications can access them. First, you will learn how browsers implement CORS. Next, you will discover how to configure your ASP.NET applications to allow CORS request to origins that you trust. Finally, you will explore the different CORS requests types and configuration options to help us secure and optimize requests coming in from other origins. By the end of this course, you will be able to identify CORS requests, configure CORS for your ASP.NET and ASP.NET Core applications.
Table of contents
- Version Check 0m
- Module Overview 1m
- What Is Cross-origin Resource Sharing (CORS) and Why Should You Care? 4m
- Configuring CORS in ASP.NET Core Applications 3m
- Restricting CORS Requests to Specific Origins 5m
- Defining Multiple CORS Policies 5m
- Allowing Credentials for CORS Requests 4m
- Debugging CORS Issues 4m
- Exposing Custom Headers in CORS 2m
- Configuring Wildcard Subdomains and Runtime Validation 3m
- Module Summary 1m