Skip to content
This repository was archived by the owner on Feb 1, 2025. It is now read-only.

Commit e273c39

Browse files
author
Bender
committed
fix(cdk): host removed so ApiGw does not fail due to client host header
1 parent 1109b36 commit e273c39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: lib/cdk-app.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ class NextStandaloneStack extends Stack {
104104
{
105105
allowedMethods: CloudFrontAllowedMethods.ALL,
106106
isDefaultBehavior: true,
107-
forwardedValues: { queryString: true, headers: ['Accept', 'Host', 'User-Agent', 'Authorization'] },
107+
// @NOTE: Host cannot be used as ApiGw expects Cloudfront's host header.
108+
forwardedValues: { queryString: true, headers: ['Accept', 'User-Agent', 'Authorization'] },
108109
},
109110
{
110111
allowedMethods: CloudFrontAllowedMethods.GET_HEAD_OPTIONS,

0 commit comments

Comments
 (0)