HTTP Request not working

When I try to reach my website via http, I am immediately redirected to https. Why? I turned off the option "https rewrites" and "Always https"!
24 Replies
Hello, I’m Allie!
Does this work from another browser/in Incognito? Your browser may sometimes cache the redirect.
zuverliebt.
zuverliebt.11mo ago
No it doesn't work
Chaika
Chaika11mo ago
A lot of web servers these days just do the redirect by default, it could be your origin doing it. If you see the CF-Cache-Status header on it, it's from your origin and not Cloudflare
zuverliebt.
zuverliebt.11mo ago
Does it work with another domain on the same server? Then it must be my domain.
Chaika
Chaika11mo ago
Another thing worth noting is if you have HTTP Strict Transport Security (HSTS) configured on your site. If you opted to have your site preloaded, or your site is on a top level domain that is preloaded by default (most of google's, like .dev), all browsers will "Redirect" to https Can you share your website, or at least the top level domain it uses?
zuverliebt.
zuverliebt.11mo ago
How i can find HSTS in my dashboard i dont find it xD
Chaika
Chaika11mo ago
The cloudflare part of it, you can find under SSL/TLS -> Edge Certificates but that won't matter if you are using a domain extension/top level domain that is preloaded by default What is your website url, or at least the top level domain it uses?
zuverliebt.
zuverliebt.11mo ago
My domain is translify.app this is my hsts settings
zuverliebt.
zuverliebt.11mo ago
Chaika
Chaika11mo ago
.app is a Google Domain which is preloaded by default
zuverliebt.
zuverliebt.11mo ago
NotLikeThis
Chaika
Chaika11mo ago
within all browsers is a "list" of preloaded domains, that they automatically redirect to https for, the entirety of the .app top level domain, that is, every .app domain, will always redirect to https and refuse to use http it may be worth keeping in mind this is a browser thing, if you try via curl or a rest client, most don't respect that list, but browsers will
zuverliebt.
zuverliebt.11mo ago
Ok, now that's a little problem.
Chaika
Chaika11mo ago
If you're just trying to use http for your own testing purposes, in Chrome you can bypass the HSTS screen by typing "thisisunsafe" (there's no prompt or anything, you just type it blindly) but yea it's really not designed to be avoided/skipped, effectively all .app domains are https only. If you need http for some purpose, you'd probably just want to acquire a domain that isn't hsts preloaded (like com, org, net)
zuverliebt.
zuverliebt.11mo ago
Actually I don't need http but if I try to run my application on a port other than 443 then this error comes up.. and I hoped to bypass that with http
zuverliebt.
zuverliebt.11mo ago
wait i send in english sorry
zuverliebt.
zuverliebt.11mo ago
zuverliebt.
zuverliebt.11mo ago
zuverliebt.
zuverliebt.11mo ago
so thats all informations xd
Chaika
Chaika11mo ago
you need to serve a valid certificate, trusted by browsers. You can get free ones via Let's Encrypt, automated issuance via Certbot. If you are just trying to test things, you can type "thisisunsafe" on that screen. That's a Cloudflare origin cert, those are only trusted by Cloudflare proxy, when the DNS Record is proxied. However, cloudflare doesn't support port 500, you'd have to use one of their supported ports if you wanted to go that direction: https://developers.cloudflare.com/fundamentals/get-started/reference/network-ports/
zuverliebt.
zuverliebt.11mo ago
okay i test it..... https://test.translify.app:2053/ping can u check maybe its work? (Cache) ahh i checked with my handy it works thank you soo much, since 15 hours i try to fix this error
Chaika
Chaika11mo ago
yea, works for me
Chaika
Chaika11mo ago
no problem MeowHeartCloudflare
zuverliebt.
zuverliebt.11mo ago
I haven't read anywhere that there are these extra ports thank you MeowHeartCloudflare of the Month plus1green
Want results from more Discord servers?
Add your server
More Posts