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

Server connection from compiled app and CORS Header

$
0
0

Hi,

my app connects to a server, which returns JSON. I have CORS headers active on my server, so that it can not be cross-origin requested by every domain.

When I output the HTTP_REFERER in my server, when the compiled capacitor app requests from the server, the referrer is http://localhost. So I would have to allow the REFERER “localhost” to access my server. I don`t really like the idea. Is it possible to change this somehow, so hat the REFERER is “my-unique-referrer”?

Thank you!


Viewing all articles
Browse latest Browse all 230100

Trending Articles



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