ESP32 and SSL connection

Hi i'm trying to access with a PWA to device ESP32 via http with TWebHttpRequest and of course chrome block me with error : Mixed Content: The page at 'BLUSIMP by Water Monitor' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://192.168.200.2:8085/CON-H'. This request has been blocked; the content must be served over HTTPS.

There is workaround to avoid this problem ?

See first answer

I already saw these arguments. For example if i add : <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> the device can't respond me because the URL is different : device expect http not https !!
A passable road can be to have on a start icon of the application (if installed on smartphone for example) the parameter passed to the browser "--allow-running-insecure-content". How can i do this ?

I have not found that this could be done

If i use a device like an http client ... there is a way to implement an http server on my pwa ? or i've always same ssl security problems ?
I don't have much practice with this but i'm looking for a standard and simple solution ...

bye

Maybe this article helps you How to create Web Server in Browser | by Jakub T. Jankiewicz | ITNEXT
or maybe you need to look at websockets communication?

I tried websockets communication with arduino ESP32 but when i connect out of localhost give me error as showed in image below. I think is security SSL question... There is anyway to avoid it ?
PWA can run on device (android for example) in localhost ?

I see in internet something like this in the manifest : "Content-Security-Policy" content="default-src 'self'; connect-src ws://192.168.200.2 'etc... is a valid way ?

  1. I cannot see the details of the failure
  2. A general connection question is rather outside the scope of our framework