Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danieltruong committed Aug 7, 2024
1 parent 61ef7d4 commit ad45ac8
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,27 +174,26 @@ Resources:
Metadata:
BuildMethod: makefile


CloudFrontAPICachePolicy:
Type: AWS::CloudFront::CachePolicy
Properties:
CachePolicyConfig:
Comment: "Custom CloudFront Caching Policy to allow the Authorization header through to the Origins."
DefaultTTL: 1
MaxTTL: 1
MinTTL: 1
Name: !Sub "${ApiDeployment}-CFCachePolicy"
ParametersInCacheKeyAndForwardedToOrigin:
CookiesConfig:
CookieBehavior: none
EnableAcceptEncodingBrotli: false
EnableAcceptEncodingGzip: false
HeadersConfig:
HeaderBehavior: whitelist
Headers:
- Authorization
QueryStringsConfig:
QueryStringBehavior: all
Type: AWS::CloudFront::CachePolicy
Properties:
CachePolicyConfig:
Comment: "Custom CloudFront Caching Policy to allow the Authorization header through to the Origins."
DefaultTTL: 1
MaxTTL: 1
MinTTL: 1
Name: !Sub "${ApiDeployment}-CFCachePolicy"
ParametersInCacheKeyAndForwardedToOrigin:
CookiesConfig:
CookieBehavior: none
EnableAcceptEncodingBrotli: false
EnableAcceptEncodingGzip: false
HeadersConfig:
HeaderBehavior: whitelist
Headers:
- Authorization
QueryStringsConfig:
QueryStringBehavior: all

SearchFunction:
FunctionName: SearchFunction
Expand Down

0 comments on commit ad45ac8

Please sign in to comment.