From the course: AWS Certified Developer - Associate (DVA-C02) Cert Prep

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Cross-origin resource sharing (CORS)

Cross-origin resource sharing (CORS)

- [Instructor] In this lecture, we will talk about cross-origin resource sharing, or CORS. If you have built a web application before involving more than one domain or origin, I can bet that you most likely run into a CORS problem. Later on, we will see why this happens and also understand why it's important to be aware of CORS when managing APIs in API Gateway. So first, let's see the textbook definition of CORS. CORS is defined as an HTTP-header-based mechanism that allows a server to indicate any other region aside its own from which a browser should authorize loading of resources. If that went over your head, it's totally fine and understandable. I myself have had troubles with it before. Don't worry, as I will try my best to explain it to you in simpler terms. And hopefully, by the end of this video, you'll have no problem explaining it to your friends, or at least it would clear most of your doubts regarding CORS. Okay? So first, of all CORS is not a feature of API Gateway. It…

Contents