I am currently developing an SPA application with Angular 4 and with a RESTful API made with Symfony. My application will be public, that is, it will not need authentication by username and password.
My question is this. What is the way to ensure that the RESTful API can only be used by the SPA application? Is there any way to ensure that only my client application can use that API and block the other accesses?
I'm asking this since I do not want other applications to be able to use my API to get the data.