we need to enable origin header in S3 and to do that follow these steps.
CloudFront will cache content from S3 bucket but we need to enable CORS headers to load fronts from it. And to do that, here are the steps to perform on CloudFront.
Happy serving content with Amazon CloudFront.