Hello @Somiya ,
it seems you have some website or web service running on your Azure IoT Edgevice and you want to connect to it over the local network?
It seems you are exposing that endpoint in an insecure manner.
Although the service is running on top of Azure IoT Edge, this has nothing to do with the runtime.
Please take a look at what HTTP/HTTPS/TLS/SSL is.
HTTP is not encrypted and thus is vulnerable
From there, check out how to create (free) x509 certificates for web development.