Fix CORS issues - React to Spring Boot with the React Proxy

Publicado el: 12 mayo 2023
en el canal de: Fast and Simple Development
3,174
48

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


En esta página del sitio puede ver el video en línea Fix CORS issues - React to Spring Boot with the React Proxy de Duración hora minuto segunda en buena calidad , que subió el usuario Fast and Simple Development 12 mayo 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 3,174 veces y le gustó 48 a los espectadores. Disfruta viendo!