1 個回答
- 最新
- 最多得票
- 最多評論
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的信息。
相關內容
- AWS 官方已更新 1 年前
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前