Amazon CloudFront – HSTS on Amazon CloudFront from S3 Origin

amazon-cloudfronthstsssl

Is it possible to set HSTS headers on an Amazon CloudFront distribution from a S3 origin?

Best Answer

It is not currently possible, see https://forums.aws.amazon.com/thread.jspa?threadID=162252 for a discussion about it.

Edit: Lambda@Edge has made it possible, see below.