Error: unable to verify the first certificate

I’m trying to use a WS Rest Api .

When I throw from localhost , http://localhost:8100/ws/tablon/listadoAnuncios , I returned the following error::

Error: unable to verify the first certificate
at Error (native)
at TLSSocket. (_tls_wrap.js:1000:38)
at emitNone (events.js:67:13)
at TLSSocket.emit (events.js:166:7)
at TLSSocket._finishInit (_tls_wrap.js:567:8)

I have a proxy in Ionic Server


“proxies”: [
{
“path”: “/ws”,
“proxyUrl”: “https://des-sede.diphuelva.es/ws
},

I’m having the same problem. Did you manage to find a workaround for this?

1 Like

After som digging around i found out the follwoing:
You can add the following to your proxy-settings:

{
"path": "/ws",
"proxyUrl": "https://des-sede.diphuelva.es/ws",
"rejectUnauthorized":false
},
5 Likes

Fantastic, it has worked .

This parameter had tried before and it did not work , but I’ve re-tested and it works.

Thanks for your answer.

1 Like