Found the reason, HTTP-endpoints has to be localhost or 127.0.0.1, if you want to use other endpoints it needs to be HTTPS.