Hacker News new | ask | show | jobs
by jacopoj 2004 days ago
Nice project, but why do you need to redirect from HTTPS to HTTP? Besides being a bad security practice, it also breaks on Firefox when HTTPS-Only Mode[1] is enabled.

[1]: https://support.mozilla.org/en-US/kb/https-only-prefs

1 comments

The HN search API[1] serves via HTTP only, so my page can't be served via HTTPS while making HTTP requests.

1. https://hn.algolia.com/api

The HN search API does serve via HTTPS, and it also redirects HTTP requests to HTTPS. Demo: [edit: removed]
Well, I don't know what was my problem, but for some reason I couldn't make the HTTPS requests, and couldn't find any info about this. It does indeed work, and I believe I need to have some wine.

Thank you! I've re-deployed the page with https now.

No problem, glad you sorted it out.