When I am testing my app on emulator….app make http calls to my local apache web server….as it is local so it doesn’t have HTTPS enabled…I receive this error:
Mixed Content: The page at ‘https://localhost/signup’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://192.168.100.15:9100/desistories/api/access_token.php’. This request has been blocked; the content must be served over HTTPS.
I have tried setting in capacitor.config.ts:
android: {
allowMixedContent: true,
…..
}
But still getting the error. How can I fix this without serving the webview on http ?