Got CORS issues? Fix them fast.
Calling from a Production React application to a Spring Boot API server is simple when you have a Proxy setup with NGINX.
For Development you may not have an NGINX instance running on your machine.
You can quickly fix the CORS issues when React is calling a Spring Boot API by simply adding the "proxy" : "http://localhost:8080" entry into your package.json file.
Now your running your local development instance just like in production and you no longer have any CORS issues. Fast and Simple.
React and Spring Boot Source code: https://github.com/ThomasJay/SpringBo...
Follow me along on my adventures.More can be found on my Udemy classes: https://www.udemy.com/user/tomjay2
Find this and more on my GitHub: https://github.com/ThomasJay
As well as my Web site: https://www.thomasjayconsulting.com
I want to help you learn and find an Amazing Job or just increase your Skills.
#java #react #springboot