I have some task depending to healthcheck endpoint.
I need to get some response from backend or get net::ERR_NAME_NOT_RESOLVED this error if we outside some network.
Currently i trying to send request to my endpoint and locally i get error with status: 0 but on the live server i've got TypeError. Any ideas how i can handle net::ERR_NAME_NOT_RESOLVED?
p.s. no matter what request im using, fetch and xmlhttprequest doesnt work to
UPD:
On the live server i can get CORS error from back-end but its ok for me, and im sure that i have access to other endpoints. Locally and outside the network ill get net::ERR_NAME_NOT_RESOLVED