Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Ionic V4 Http request with origin http://localhost:8080

$
0
0

@sasos90 wrote:

Hi there!

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!

Br
Saso

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>