DEV Community

Andriantseheno
Andriantseheno

Posted on

CORS Error When Accessing Nest.js API Locally

Hey everyone! 👋

I've recently deployed a Nest.js API online, and I'm excited about the progress. However, when attempting to access it locally, I've run into a CORS (Cross-Origin Resource Sharing) error.

This hiccup can be a common issue when dealing with web applications that are hosted on one domain while being accessed from another. To tackle this, I'm exploring CORS configuration options within Nest.js to ensure a smooth cross-origin communication.

Any suggestions or experiences with CORS troubleshooting in Nest.js would be greatly appreciated! Let's exchange some knowledge and get this API accessible both online and locally without any hiccups. 🚀

Top comments (0)