Reputation: 203
I adding an instant chat (like gmail chat) in my rails application and I am using private_pub and faye. The app seems to work so far, but users can only see messages after they refresh the page. I inspected the element and it shows that faye.js is being blocked. exact error is
Mixed Content: The page at 'https://....' was loaded over HTTPS, but requested an insecure script 'http://localhost:9292/faye.js'. This request has been blocked; the content must be served over HTTPS.
Has anyone exeperienced such an error and/or any idea how to work around this? See attached image for a screenshot of the error.enter image description here
Upvotes: 0
Views: 212
Reputation: 1761
It's a browser behaviour in the interest of security.
HTTPS pages are blocked from loading non-HTTPS resources like Javascript
, images and CSS files and will show you that error.
If you must load your page over HTTPS
, ensure all resources must also be in HTTPS
.
Upvotes: 0