2

I'm trying to deal with avatars.io JS lib. I want to send HTTP/HTTPS requests based on current page protocol.

When I send HTTPS request to avatars.io service, like this https://avatars.io/v1/upload?authorization=... I got response http://s3.amazonaws.com/cdn.getchute.com/v1/images/avatars.io/avatar-32.png

And this causes 'Mixed Content' error.

Also there is a question: how I can change the host before uploader initialization to prevent unwanted requests to default host?

bruha
  • 2,505
  • 1
  • 22
  • 21

0 Answers0