Server connection from compiled app and CORS Header


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!

Does nobody know, or is my question not understandable or stupid?