diff --git a/infra/cloudfront/main.tf b/infra/cloudfront/main.tf index d8dc634..6e4e1d7 100644 --- a/infra/cloudfront/main.tf +++ b/infra/cloudfront/main.tf @@ -139,7 +139,10 @@ resource "aws_cloudfront_distribution" "cf" { forwarded_values { query_string = false - headers = ["Origin"] + headers = [ + "Origin", + "Content-Type" + ] cookies { forward = "none" diff --git a/steps/transform/src/handler/transform.py b/steps/transform/src/handler/transform.py index 1b5130d..8495320 100644 --- a/steps/transform/src/handler/transform.py +++ b/steps/transform/src/handler/transform.py @@ -24,6 +24,7 @@ def transform_report(event, context): result = s3.put_object( Bucket=website_bucket, Key="index.html", + ContentType="text/html", Body=page.encode(), )