DEV Community

Anto Online
Anto Online

Posted on

The CORS specter...

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:
[https://anto.online/code/how-to-set-up-cors-for-an-aws-lambda-proxy-rest-api-resource/]

I hope this guide will save you the many hours of debugging I had to endure.

Top comments (0)