HTTP redirecting to HTTPS

What is the name of the domain?

What is the issue you’re encountering

I have a node.js server serving an http server over port 80 and an https server over port 443. I want people to pick between the http:// and https:// version, but http keeps redirecting to https. When I connect to my direct ip over http/https it works perfectly fine. Also people used to be able to pick http or https until today when I pressed “enable all available settings” in optimization.

What steps have you taken to resolve the issue?

I have no page rules. Force https is turned off. I tried having my ssl set to off, flexible, and full, and none of them worked. When it is set to off I get a too many redirects error. When set to flexible or full it redirects to the https version.

Was the site working with SSL prior to adding it to Cloudflare?

Yes

What is the current SSL/TLS setting?

Full

Use “Full (strict)” so Cloudflare validates the SSL certificate on your origin and the connection is properly secured when using HTTPS.

It seems to work ok for me, HTTP is not redirect to HTTPS…
https://cf.sjr.org.uk/tools/check?2217f19663ca4b0abc5047004a3324b0#connection-server-http

Clear your browser cache or use incognito/private mode to see if your browser has cached a previously set redirect.

I think I found the issue. I recently set up a valid ssl certificate on my origin which made it so https was now secure to connect to. So now browsers will automatically upgrade to https even when I explicitly use http. I am unsure of how to fix this though without making https insecure again.

The reason I want people to be able to access http is because I used localStorage to store some data on there, and now I want people to be able to transfer that data to the https version, but since browsers are automatically redirecting to https they can’t get the data

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.