Cross-Origin Requests (CORS) in ASP.NET Core | Getting Started With ASP.NET Core Series
Hello friends, Browser security prevents a web page from making requests to a different domain than the one that served the web page. This restriction is called the same-origin policy. The same-origin policy prevents a malicious site from reading sensitive data from another site.
Sometimes, you might want to allow other sites to make cross-origin requests to your application. This is usually when you have an API hosted independently and your different web applications talking to the API. In such scenarios, we need to enable CORS support on the API, so that the web application can call it.
In this video, let's learn about CORS, how it works, how to enable it in ASP NET API. I will show to how to simulate a CORS error in ASP NET Single Page Application and then add the appropriate configuration to ease the browser policies using CORS.
CORS is not a security feature, It is a W3C standard to relax same-origin policy. However if configured incorrectly CORS can cause potential issues to your application. Make sure to be explicit about the origins that can interact with the API that you are building.
🔗Source Code - Source Code: https://rahulpnath.visualstudio.com/DefaultCollection/YouTube%20Samples/_git/cors
🔗Enable CORS in ASP NET Core - https://docs.microsoft.com/en-us/aspnet/core/security/cors?view=aspnetcore-3.1&WT.mc_id=AZ-MVP-5003875
🔗Migrate from ASP.NET Core 2.2 to 3.0 - https://docs.microsoft.com/en-us/aspnet/core/migration/22-to-30?view=aspnetcore-3.1&tabs=visual-studio#cors&WT.mc_id=AZ-MVP-5003875
Additional Watching
📹SINGLE PAGE APPLICATION (SPA) TEMPLATES in ASP.NET Core - https://youtu.be/mILRINbRiJM
📹DEPENDENCY INJECTION in ASP.NET Core - https://youtu.be/YR6HkvNBpX4
📹MIDDLEWARE in ASP.NET Core - https://youtu.be/5eifH7LEnGo
📹ASP NET Core Series - https://www.youtube.com/playlist?list=PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP
Come say hi! ✋
🌍 Blog - https://rahulpnath.com/
✉ Subscribe to my Newsletter - https://www.rahulpnath.com/subscribe
🐦Twitter - https://twitter.com/rahulpnath
📸Instagram - https://www.instagram.com/rahulpnath/
🎥 Recording Setup and Workflow - https://www.rahulpnath.com/blog/youtube_setup_and_workflow/
Video Edited by my wife, Parvathy 😍
Make sure to SUBSCRIBE to the channel. THANK YOU for helping me grow this channel !!
Видео Cross-Origin Requests (CORS) in ASP.NET Core | Getting Started With ASP.NET Core Series канала Rahul Nath
Sometimes, you might want to allow other sites to make cross-origin requests to your application. This is usually when you have an API hosted independently and your different web applications talking to the API. In such scenarios, we need to enable CORS support on the API, so that the web application can call it.
In this video, let's learn about CORS, how it works, how to enable it in ASP NET API. I will show to how to simulate a CORS error in ASP NET Single Page Application and then add the appropriate configuration to ease the browser policies using CORS.
CORS is not a security feature, It is a W3C standard to relax same-origin policy. However if configured incorrectly CORS can cause potential issues to your application. Make sure to be explicit about the origins that can interact with the API that you are building.
🔗Source Code - Source Code: https://rahulpnath.visualstudio.com/DefaultCollection/YouTube%20Samples/_git/cors
🔗Enable CORS in ASP NET Core - https://docs.microsoft.com/en-us/aspnet/core/security/cors?view=aspnetcore-3.1&WT.mc_id=AZ-MVP-5003875
🔗Migrate from ASP.NET Core 2.2 to 3.0 - https://docs.microsoft.com/en-us/aspnet/core/migration/22-to-30?view=aspnetcore-3.1&tabs=visual-studio#cors&WT.mc_id=AZ-MVP-5003875
Additional Watching
📹SINGLE PAGE APPLICATION (SPA) TEMPLATES in ASP.NET Core - https://youtu.be/mILRINbRiJM
📹DEPENDENCY INJECTION in ASP.NET Core - https://youtu.be/YR6HkvNBpX4
📹MIDDLEWARE in ASP.NET Core - https://youtu.be/5eifH7LEnGo
📹ASP NET Core Series - https://www.youtube.com/playlist?list=PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP
Come say hi! ✋
🌍 Blog - https://rahulpnath.com/
✉ Subscribe to my Newsletter - https://www.rahulpnath.com/subscribe
🐦Twitter - https://twitter.com/rahulpnath
📸Instagram - https://www.instagram.com/rahulpnath/
🎥 Recording Setup and Workflow - https://www.rahulpnath.com/blog/youtube_setup_and_workflow/
Video Edited by my wife, Parvathy 😍
Make sure to SUBSCRIBE to the channel. THANK YOU for helping me grow this channel !!
Видео Cross-Origin Requests (CORS) in ASP.NET Core | Getting Started With ASP.NET Core Series канала Rahul Nath
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![ASP NET CORE SINGLE PAGE APPLICATION (SPA) Build/Release Pipeline | Azure DevOps](https://i.ytimg.com/vi/SYhufaLn51w/default.jpg)
![Same-origin policy: The core of web security @ OWASP Wellington](https://i.ytimg.com/vi/zul8TtVS-64/default.jpg)
![CONFidence 2014: Security Implications of the Cross-Origin Resource Sharing - Gergely Revay](https://i.ytimg.com/vi/8HMSH-uES9M/default.jpg)
![LAYERING in ASP.NET Core | Getting Started With ASP.NET Core Series | Dependency Inversion Principle](https://i.ytimg.com/vi/43fg4T4iFGw/default.jpg)
![AppSec EU 2017 Exploiting CORS Misconfigurations For Bitcoins And Bounties by James Kettle](https://i.ytimg.com/vi/wgkj4ZgxI4c/default.jpg)
![PULL REQUEST WORKFLOW in AZURE DEVOPS - Raising a PR, Reviewing and Setting up Branch Policies](https://i.ytimg.com/vi/dGCid5W-HK0/default.jpg)
![#HITB2017AMS D2T1 - Everybody Wants SOME: Advance Same Origin Method Execution - Ben Hayak](https://i.ytimg.com/vi/OvarkOxxdic/default.jpg)
![ASP.Net Core Interview Questions and Answer || Top 15 .Net Core Interview Questions](https://i.ytimg.com/vi/7c4r_wodqJE/default.jpg)
![OPTIONS PATTERN in ASP.NET Core | Getting Started With ASP.NET Core Series](https://i.ytimg.com/vi/SizJCLcjbOA/default.jpg)
![Web Security - Lecture 04 - Cross-Site Request Forgery, Same Origin Policy](https://i.ytimg.com/vi/0-q69vAYSwo/default.jpg)
![James Kettle - Exploiting CORS Misconfigurations for Bitcoins and Bounties - AppSecUSA 2016](https://i.ytimg.com/vi/22CKQ_xed9s/default.jpg)
![Enable CORS (Cross Origin Requests) in .NET Core for Angular](https://i.ytimg.com/vi/ssi6JRlBw28/default.jpg)
![Using ARM TEMPLATES In AZURE DEVOPS PIPELINE To Automatically CREATE INFRASTRUCTURE As CODE](https://i.ytimg.com/vi/3IRwtbGlshk/default.jpg)
![Same Origin Method Execution (SOME) - Exploiting a Callback for Same Origin Policy Bypass](https://i.ytimg.com/vi/UfYfID_r7-U/default.jpg)
![Clean Architecture with ASP.NET Core 2.1 | Jason Taylor](https://i.ytimg.com/vi/_lwCVE_XgqI/default.jpg)
![Web Security - Lecture 05 - Exceptions to the Same Origin Policy](https://i.ytimg.com/vi/ud9cVQDte3A/default.jpg)
![YAML RELEASES In AZURE DEVOPS PIPELINE | Configure Build and Release in YML file](https://i.ytimg.com/vi/F93dKycIqEM/default.jpg)
![MIDDLEWARE in ASP.NET Core | Getting Started With ASP.NET Core Series](https://i.ytimg.com/vi/5eifH7LEnGo/default.jpg)
![Building Microservices with Go: 9 CORS (Cross-Origin Resource Sharing)](https://i.ytimg.com/vi/RlYoy_RiYPw/default.jpg)
![Enabling CORS & Token Authentication in an ASP.NET WEB API application](https://i.ytimg.com/vi/4bOVhjA7Nz4/default.jpg)