When running capacitor for android,
GET requests to my API aren't working, and I am getting weird headers (Client-Via:shouldInterceptRequest
) as well as the fact that the request is served from disk cache.
also the request is having incorrect Content-Type
of Content-Type:text/html
instead of JSON
Using capacitor ionic V1.0.0
While running the request from the browser, or capacitor IOS it's working totally fine and the request is being served from the network as well with the correct headers.
Any idea of why my webview requests are being intercepted like this? Thanks.