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

Pubblicato il: 12 maggio 2023
sul canale di: 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


In questa pagina del sito puoi guardare il video online Fix CORS issues - React to Spring Boot with the React Proxy della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Fast and Simple Development 12 maggio 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,174 volte e gli è piaciuto 48 spettatori. Buona visione!