question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not work over HTTPS (on Heroku)

See original GitHub issue

Just added the route to an Express app I have deployed to Heroku and I’m getting the following error (repeated every second):

Mixed Content: The page at 'https://mysitename.herokuapp.com/status' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://mysitename.herokuapp.com:41338/socket.io/?EIO=3&transport=polling&t=LQPzECX'. This request has been blocked; the content must be served over HTTPS.

XMLHttpRequest cannot load http://mysitename.herokuapp.com:41338/socket.io/?EIO=3&transport=polling&t=LQPzECX. Failed to start loading.

Can you maybe provide a way to specify whether the Socket.io call be made over HTTPS, or better yet, handle this automatically?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
RafalWilinskicommented, Aug 18, 2016

Thank you guys for your input and fast reaction! Version 0.0.9 has been published on NPM with HTTPS and HTTP support.

You can test https support here: https://safe-fjord-78017.herokuapp.com/status

1reaction
TravelingTechGuycommented, Aug 17, 2016

Just checked the latest version - doesn’t work. If I browse to my web site without specifying http/https in the address page, and then add the ‘/status’ route, I get GET http://www.mysite.com:41338/socket.io/?EIO=3&transport=polling&t=LQQXZPh net::ERR_CONNECTION_REFUSED

Read more comments on GitHub >

github_iconTop Results From Across the Web

Heroku SSL added but visiting domain still says connection is ...
When I look in my Heroku GUI, at my settings for example-101.herokuapp.com, under 'Custom Domains' it lists www.mycustomdomain.com and mycustomdomain.com, each ...
Read more >
Heroku SSL
Heroku doesn't support SSLv3, TLS 1.0, or TLS 1.1 for security reasons. Heroku curates the cipher suites to strike a balance between security ......
Read more >
Troubleshooting Heroku SSL errors - DNSimple Help
This article describes somes of the most common errors you may experience when installing a certificate on Heroku, along with the corresponding solutions....
Read more >
Https version of web application is not working but http is?
I use Namecheap to setup my DNS and I do this using: CNAME Record | www | www.my_domain.herokudns.com. I found this information using...
Read more >
How To Force HTTPS (SSL/TLS) on Heroku - Expedited Security
Before you can force HTTPS connections for clients connecting to your Heroku app you need to implement one of the many different methods...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found