ERROR: The request could not be satisfied – Amazon CloudFront CDN

The Amazon Cloudfront CDN network requires a successful connection to its origin to work correctly without any 502 gateway errors.

I did everything right.

For example: Cloudfront URL: https://d1u2h2xwg5v1gz.cloudfront.net/wp-content/uploads/2018/11/smartphone-security-guide-1.jpeg (502 Error)
URL of my origin: https://www.techlegends.in/wp-content/uploads/2018/11/smartphone-security-guide-1.jpeg (Source)

According to the SSL test (in reference to this guide: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/http-502-bad-gateway.html): the origin name does meet the condition.