cloudfront proxied dns redirect loop issue

Faced an issue where I would get stuck in a redirect loop when configured a cloudflare dns as ‘proxied’. Turns out the solution is to set SSL/TLS mode to ‘Full’ and that solves it.

Ref