XMLHttpRequest cannot load https://anycoindirect.eu/api/public/coins. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access.
But even this didn’t help. Only the error message changed. The error object shows a 404 error now, because it trys to find the api on localhost:
Hmm … why don’t fit the set proxy? Do I need a proxy? I think, if I use ionic serve I’ll have to set a proxy, right? I don’t get it, I just want this fu**nky response from the api
I don’t know why … Since I tried ionic serve -l I don’t get the 404 errors any more. It’s 502 now. If I set a wrong proxyUrl it turns to error no. 500. All errors are from the proxy and shows in _body field of the error the response with detailed error information.
So I switched the proxyUrl again to the correct url. And now … error 200! Finally
So the problem is solved and I don’t really know, why.