I found that my problem was that the server I've sent the cross request to had a certificate that was not trusted.
If you want to connect to a cross domain with https
, you have to add an exception for this certificate first.
You can do this by visiting the blocked link once and addibng the exception.