Skip to content

Commit 5817554

Browse files
committed
Revert "fix cloudfront CORS headers"
This reverts commit 5fbe163.
1 parent 5fbe163 commit 5817554

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

cloudformation/main.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -633,8 +633,14 @@ Resources:
633633
CachedMethods:
634634
- GET
635635
- HEAD
636-
CachePolicyId: 4cc15a8a-d715-48a4-82b8-cc0b614638fe # use origin headers
637-
OriginRequestPolicyId: b689b0a8-53d0-40ab-baf2-68738e2966ac # all except host - normally, you want to pass the host header but our setup is weird
636+
ForwardedValues:
637+
QueryString: true
638+
QueryStringCacheKeys:
639+
- host
640+
- ts
641+
- upcomingOnly
642+
Cookies:
643+
Forward: none
638644
- PathPattern: "/api/v1/events/*"
639645
TargetOriginId: ApiGatewayOrigin
640646
ViewerProtocolPolicy: redirect-to-https
@@ -649,8 +655,14 @@ Resources:
649655
CachedMethods:
650656
- GET
651657
- HEAD
652-
CachePolicyId: 4cc15a8a-d715-48a4-82b8-cc0b614638fe # use origin headers
653-
OriginRequestPolicyId: b689b0a8-53d0-40ab-baf2-68738e2966ac # all except host - normally, you want to pass the host header but our setup is weird
658+
ForwardedValues:
659+
QueryString: true
660+
QueryStringCacheKeys:
661+
- host
662+
- ts
663+
- upcomingOnly
664+
Cookies:
665+
Forward: none
654666
- PathPattern: "/api/*"
655667
TargetOriginId: ApiGatewayOrigin
656668
ViewerProtocolPolicy: redirect-to-https

0 commit comments

Comments
 (0)