I hava a problem.My project is two spring boot that are connected to gether by Resttemplate(I have maked a bean for it).
My project is such that the information is imported in the form of json from the front of the first project and without any changes it is sent to the second project and there it is registered in the database.
The project works without errors in all 4 methods. The problem is that when I want to access the project through another system with a different IP, it gives an error and I can’t do anything (build, read, etc.) It doesn’t work, but it displays the html page). I couldn’t fix it by using @CrossOrgin annotation. Can someone help me please.
Front used:html & js
Backend:java,spring boot and hibernate
Database:oracle
I tried @Cross orgin on my controller method.
Amirhossein Norouzi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.