Testing doesn't work without https




I’m running a nodejs app using express and nodemon on c9. It loads some insecure resources right now, so Chrome blocks them, which prevents the page from functioning. So I loaded the http version of the dev site in a new tab, and the main index page shows up correctly. Unfortunately whenever I go to any routes set up by the router on http, i get an error:

Something went wrong !
Server timed out or sent incomplete response

Click here to try again. (Perhaps you meant to use HTTPS instead of HTTP?)

If that still doesn’t work, please Issue a bug report.

If I change that resource to https, it works fine. Any idea how to fix?


Answer found - I had done app.set(process.env.PORT) in the wrong place. I guess somehow it worked anyways with ssl enabled.