Hope this post is taken in good spirits.
I have a speing app with react front end. Initially I go the error in my local – ‘Reason: CORS header ‘Access-Control-Allow-Origin’ missing
This was sorted by adding @CrossOrigin(“http://localhost:3000”) on the controller.
Now I want to setup React as a Static web app on Azure and deploy Spring app as Azure Spring Apps (or similar)
This will no longer be localhost, do I need to deploy front end and then update cors in spring app ? or is there a better way ? or is this not a good idea (motivation why not use
static web app to try)?
Please advice