Fixing CORS in AWS CDK Without Guesswork

I’ve seen a weird pattern with CORS on AWS projects: the infrastructure is “fully automated,” but CORS is still handled like a last-minute checkbox. Somebody adds '*', the browser still fails, and the team burns half a day staring at DevTools. This case study is from a setup that’s very common: React frontend hosted on S3 + CloudFront API on API Gateway + Lambda Infrastructure managed with AWS CDK in TypeScript Cookies used for auth in production Separate frontend domains for local, staging, and prod The team thought they had CORS configured. They did not. ...

November 19, 2026 · 7 min · headertest.com