You have a REST API which is integrated with an AWS Lambda function and deployed with the Amazon API Gateway.
Now you want to enable CORS or cross-origin resource sharing so you can call your API using an HTTP request from a different domain.
How do you do this using the API Gateway? Let's find out.
Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale. APIs act as the "front door" for applications to access data, business logic, or functionality from your backend services.
AWS Lambda is a serverless, event-driven compute service that lets you run code for virtually any type of application or backend service without provisioning or managing servers. You can trigger Lambda from over 200 AWS services and software as a service (SaaS) applications, and only pay for what you use.
P.S. Why did the developer get lost in the jungle with Amazon API Gateway? Because they followed the documentation's "path" parameter a little too literally and ended up in a wild endpoint!
Негізгі бет AWS API Gateway 👉 Enable CORS Tutorial 🔥
Пікірлер: 36