Hi everyone. This is my very first post here.
I’m working in a big project that in the future may have critical performance concerns, and I’m studying the deployment part. After past discussions we decide to move to AWS, where we can use other services in the same VPC, with less cost and full control.
After setup serverless deployment and do the first one, nothing works because of CORS. I hadn’t thought about it until then, but it was predictable. So I started to search how to avoid to deal with CORS with the services that we were using. I was sure that it would be easy to implement a reverse proxy on CloudFront, but it was not. I read this, this, this and much more, CloudFront screenshots seems to be outdated, and to be honest I saw CloudFront working as expected for few minutes, but:
- Stopped working without changes, with 403 errors with another cause than this
- We might have conflict with manual steps and serverless CloudFormation deployment
So I decided to undeploy the frontend and use AWS Amplify to host it. And it works easily. I’m late to making this post because what I want to know is if someone had success with cloudfront and reverse proxy recently and whether there may be known problems using AWS Amplify.