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.
Why should you share your news?
Contributing is one of the best ways to promote a website. This technique has been used for decades now and is still very effective. But, this strategy can make or break your rankings depending on its application.
A news website is one of the best places to publish your blog. This is because such sites always have massive amounts of targeted traffic. If you write quality content, your post will get many hits, and many people will follow your blog.
The content provided has been modified and is not displayed as intended by the author. Any trademarks, copyrights, and rights remain with the source. Linux Chatter sources content from RSS feeds and personal content submissions. The views and opinions expressed in these articles are those of the authors and do not necessarily reflect Linux Chatter.