1 Answer
- Newest
- Most votes
- Most comments
0
【以下的回答经过翻译处理】 您可以通过CloudFront将流量发送到您的API Gateway,并使用API密钥保护API Gateway。
所以您将拥有“api.example.com”-> CloudFront(在其中验证cookie并添加X-API-KEY到请求-> API Gateway)。要添加x-api-key,您可以在CloudFront设置中指定它,而无需使用Lambda @ Edge https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/add-origin-custom-headers.html
这里提供了如何使用API Gateway自己的CloudFront分发来配置API Gateway的信息。
Relevant content
- asked 10 months ago
- asked a year ago
- asked a year ago
- Accepted Answerasked 10 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago