I have registered the domain via Cloudflare so the nameservers are automatically assigned and configured to point to my domain name.
As you can see from the screenshot I have added a CNAME record to redirect to my AWS ALB. I have copied the DNS name from the AWS console which successfully resolves when I directly access the LB via web browser.
More than 24 hours have passed since domain registration and DNS settings update. Does anyone know what the problem might be? Should I wait more? Thanks!
I can see in my browser Network tab that is getting 307 meaning my browser is immediately trying to connect to HTTPS without even trying to connect to HTTP first. Am I correct?
Also, installing SSL certificate in Cloudflare for domain, would that resolve my issue?
Yes, all .dev domains will automatically use HSTS (and thus, HTTPS) in most common browsers.
To fix your problem, you need to configure the loadbalancer to serve your domain, as I said previously. This requires you to install an SSL certificate on your loadbalancer.
This is the result of a new feature in most browsers that will change requests using http to https if the domain publishes a special DNS record, like a DNS-based HSTS. curl does not care about that record. Please see: