Configuring API Gateway for CORS
In this lesson, you will learn how to configure API Gateway for CORS using AWS Lambda.
We'll cover the following...
OPTIONS
handler #
The CORS request going from the web page to your API is going to be a bit more tricky. You’ll need to add an OPTIONS
handler to the API and also change the response in your function to include the correct origin.
There are two ways of configuring OPTIONS
handlers. The first is to add a Lambda function and an API endpoint. This would make it fully flexible, so you could dynamically calculate the right origin and ...
Access this course and 1400+ top-rated courses and projects.