Hotfix to use umbraco rest api url from the configuration file. Autodetection sometimes return the IP address which is wrong with SSL.