I am having an issue, calling the REST endpoint with origin “http://localhost:8080” placed in the header instead of the “file://” or whatever else that could omit the CORS request. I am not using the HTTP native plugin but Angular’s HttpClient which is probably the cause of this issue right?
So what are the solutions here?
Is the best solution, using the HTTP native plugin and wrap it into the Observable for example? It bothers me because it’s built with promises basically. And I think the testing of the app would be simpler, using HttpClient from Angular. Am I wrong?
Thanks in advance!