DEV Community

Anto Online
Anto Online

Posted on

2 1

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)

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay