I have login page in ReactJS(frontend) runs in localhost:3000 and my backend code in which validates the customer in java springboot(backend) localhost:8080 .
I faced the cross origin issues when I do the api call from frontend to backend ,
- Will it work after solving the cross origin issue in localhost ?
- Is it good Practice to test it in localhost with different ports for development testing ?
No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled