How can I disable redirection from http to https?

I'm serving a web app which needs to access gadgets/devices in the local network (private IP address space). There's no DNS resolution which means there's also no SSL possible and browsers are rejecting non-ssl connections when the original content is served via ssl. That's why I need to disable the automatic redirection to https. How can this be done with CloudFlare Pages? Thanks
5 Replies
! Julius Cole
! Julius Cole2y ago
Pretty sure you can't CF Pages is on the edge so it'd naturally have HTTPs forced
softworkz
softworkzOP2y ago
Well, it does respond to http requests on port 80. Which means it can to it. The problem is "just" that it returns a redirection response to https and that's what would need to be prevented. Redirections are generally well configurable, so I'm wondering whether that specific one can be disabled in some way..
zegevlier
zegevlier2y ago
From what I've tried, this doesn't seem to be possible to disable when using pages. Do you have control over the browsers that are accessing the site? You can allow mixed content explicitly on the client
softworkz
softworkzOP2y ago
Enabling mixed content helps for fetch() requests but weirdly not for images (<img> or background-image: xx) Does anybody know a different service which allows http? I'm currently using GitHub pages and I thought CloudFlare pages would come to the rescue as it seems to be much more flexible, but well - it doesn't seem so.. Firebase seems to be the same story unfortunately.
zegevlier
zegevlier2y ago
Not using HTTPS is extremely outdated nowadays. You could always get a VPS somewhere, put nginx on it and host it via that
Want results from more Discord servers?
Add your server