examples icon indicating copy to clipboard operation
examples copied to clipboard

origin control policy is wrong

Open jvsteiner opened this issue 3 years ago • 0 comments

examples/aws-node-single-page-app-via-cloudfront/serverless.yml:52 - ie. line 52, there is:

OriginProtocolPolicy: https-only

This is exactly wrong - it should be http-only.

Apart from many other reasons why people would use cloudfront instead of plain-jane s3, one very important one is that you can serve https from it. Not so for S3. S3 is the origin. OriginProtocolPolicy indicates the protocol that cloudfront uses to fetch the assets from s3. and https is not supported by s3.

jvsteiner avatar Oct 11 '20 16:10 jvsteiner