neno123_Original post
Web Developer
Hello, I added my Netlify url as my Hostname and i get this CORS error.
I also removed the localhost from the hostname, but still have access when i start the app on localhost.
Summary
Solution: The user was experiencing a CORS error on their React app. It turned out that their .env file was not working on Netlify. They resolved the issue by fixing their .env file, and now it is working correctly. Another user pointed out that the app might be missing the project ID and suggested checking for any extra spaces before or after the hostname. As for the CORS error, the user mentioned that they added their Netlify URL as the hostname and still encountered the error, even after removing "localhost" from the hostname. Unfortunately, a solution for the CORS error was not mentioned in the thread.
