force ssl connection to the api