Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Origin file:// produce 403 Forbidden from REST API

$
0
0

Hi,

I need help for the following problem. If I start the app with the command 'ionic run --device -l' everything ist ok.
I can see that ionic set in request header of REST -API the Origin : localhost:8100.
But if I start the app without liveload with command 'ionic run --device' the Origin would set to file://
My API backend allows every origin, with an IP or an hostname but not file://, here I get the code 403 Forbidden.

So why is cordova set the origin to file://? How I can solve the problem?


Viewing all articles
Browse latest Browse all 228595

Trending Articles



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