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

Commit

Permalink
fix(cdk): host removed so ApiGw does not fail due to client host header
Browse files Browse the repository at this point in the history
  • Loading branch information
Bender committed Oct 12, 2022
1 parent 1109b36 commit e273c39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cdk-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ class NextStandaloneStack extends Stack {
{
allowedMethods: CloudFrontAllowedMethods.ALL,
isDefaultBehavior: true,
forwardedValues: { queryString: true, headers: ['Accept', 'Host', 'User-Agent', 'Authorization'] },
// @NOTE: Host cannot be used as ApiGw expects Cloudfront's host header.
forwardedValues: { queryString: true, headers: ['Accept', 'User-Agent', 'Authorization'] },
},
{
allowedMethods: CloudFrontAllowedMethods.GET_HEAD_OPTIONS,
Expand Down

0 comments on commit e273c39

Please sign in to comment.