When I set the domain as the same of the host the app returns the index.html. This behavoir is happening because app’s webview thinks you are asking for an internal resource, like a local page (index.html, etc.), instead of making an actual HTTP network request.
I need to set the same domain to avoid CORS conigurations and pre flights calls.