Architecture
When CORS Requests Turn Into Unexpected API Gateway Costs (and How to Fix It)
·712 words·4 mins
Cross-Origin Resource Sharing (CORS) can result in hidden AWS API Gateway charges when every request triggers a preflight. This post explains why and shows how to use CloudFront, caching, path-based routing, and smart API design to reduce costs.