是通过HTTPS加载的,但请求了一个不安全的XMLHttpRequest端点

时间:2016-02-02 05:57:56

标签: javascript amazon-web-services amazon-ec2

不确定如何解决此错误?我可以通过https(SSL)让AWS提供我的S3内容吗?

Mixed Content: The page at 'https://myapp.herokuapp.com/thing/index' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://ec2-54-228-444-239.us-west-2.compute.amazonaws.com/socket.io/1/?t=14543333333'. This request has been blocked; the content must be served over HTTPS.

1 个答案:

答案 0 :(得分:1)

确定这个网址应该是:

http://ec2-54-228-444-239.us-west-2.compute.amazonaws.com/socket.io/1/?t=14543333333

as

https://ec2-54-228-444-239.us-west-2.compute.amazonaws.com/socket.io/1/?t=14543333333