Hello, I am trying to follow the ionic proxy guide so I can test my app in desktop.
Everything works fine on devices.
My server which it needs to reach out to uses a self-signed certificate.
Here is the error I get when I do a ionic-serve:
✗ Error: self signed certificate
at Error (native)
at TLSSocket.<anonymous> (_tls_wrap.js:929:36)
at TLSSocket.emit (events.js:104:17)
at TLSSocket._finishInit (_tls_wrap.js:460:8)
✗ Error: self signed certificate
at Error (native)
at TLSSocket.<anonymous> (_tls_wrap.js:929:36)
at TLSSocket.emit (events.js:104:17)
at TLSSocket._finishInit (_tls_wrap.js:460:8)
So far I’ve tried putting process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
at ~/.npmrc but it has no effect. The browser instance (Chrome) I am running on has already accepted the self signed certificate in another tab.
My ionic.project setting for proxies is:
"proxies": [
{
"path": "/zm",
"proxyUrl": "https://<myserver>/zm"
}],
And inside my code, I am ensuring the URL paths are just /zm if it is running in desktop mode