@AlessioBacin
The ESP8266 port does not have the TLS component compiled in that is required for https. There is not enough free memory for the buffers required. You reduce the number of jsvars and compile this in, but depending on how complex your code is, you might not have enough space left to do what you want to achieve.
You could use a http to https proxy service as a helper.
The ESP32 build has enough resources, so that https:// works.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@AlessioBacin
The ESP8266 port does not have the TLS component compiled in that is required for https. There is not enough free memory for the buffers required. You reduce the number of jsvars and compile this in, but depending on how complex your code is, you might not have enough space left to do what you want to achieve.
You could use a http to https proxy service as a helper.
The ESP32 build has enough resources, so that https:// works.