From the course: Advanced ASP.NET Web API 2.2
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
What is CORS?
- [Instructor] In programming CORS is a really important term. And CORS stands for cross-origin resource sharing. But what do all these words mean? Let us analyze them one by one. Imagine a swimming pool which can be used only by the family members of another family. Now, if you live across the street and you want to use that pool you need permission from that family so you are allowed to use their resources. But what is a resource? The resource in this case is the pool. Or it can be an image, a font, or a video in a program or an application. So we requested if that family could share their resources with us, which they accepted, but could have also denied. That is called sharing. And CORS can be triggered from different HTTP requests. For example, it can be triggered from a different domain, from a subdomain, from a different port, or even a different protocol.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.