CORS Strict Origin using S3 Bucket and CloudFront

Viewed 20

I'm using a S3 Bucket with a CloudFront distribution on a sub domain but I get strict-origin-when-cross-origin on a GET request. I can't see what I've done wrong so any help is greatly appreciated. My website url is https://www.project1.tompenn.co.uk/ And my content url is https://content.tompenn.co.uk/TFTSet7_2/traits.json

Developer Console on my website is throwing the error: Access to fetch at 'https://content.tompenn.co.uk/TFTSet7/traits.json' from origin 'https://www.project1.tompenn.co.uk' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.

enter image description here

Here is the CORS policy on my S3 Bucket: enter image description here

Here is how my CloudFront Distribution is setup. I only have the one behaviour and this is the config for it: enter image description here enter image description here

1 Answers

Okay changing this option seems to have solved my issue. enter image description here

Related