I sat down at my computer to work on my new website. The task was simple! Connect the frontend with the backend API.
All was going well until suddenly my browser console said: "CORS errors whoo, haha!"
What? I already enabled CORS support, and I allowed any. (knowing this is bad practice) I rechecked everything and was sure everything was correct. So what's going on?
This is what I did to squash the CORS specter while trying to integrate two AWS Lambda Proxy REST API resources:
I hope this guide will save you the many hours of debugging I had to endure.