-1
I have an application where the back-end was done in Java with Spring Boot, and the front was done in Angular. I deploy the Angular project built into the folder src/main/Resources/Static.
In the current situation the api endpoints, consumed by the front, can also be accessed by typing their path in the browser.
Ex.: The page localhost:8080/Index.html consumes the endpoint localhost:8080/api/example to show your content.
What should I do for that route localhost:8080/api/example be accessible only for localhost:8080/Index.html?
Thanks for the North
– Gerson Ferreira Junior