DEV Community

Discussion on: CORS is a Pain for Side Projects

Collapse
szabikr profile image
Szabi Author

Thank you for your response Seb, very informative and highlights the fact that the enabling CORS is not a great idea in a real life scenario. For example this end-point what we've created in the tutorial is going to allow requests from all origins and the supported methods are GET and POST.

This solution provides me the ability to build, test and try out absolutely vital functionality first, without buying a domain name or getting close to production stage at all. With this guide everybody can start working on a web application within a few minutes and focus on real functionality.

I am going to check out the proxy solution in create-react-app, that is probably a more elegant and safer way of getting the problem out of the way.