On the application layer we need to access the Host header in the request object, however it's not equal to any of alternative domain names.
As of now, header behaviour is hardcoded as CacheHeaderBehavior.allowList('accept', 'accept-language', 'content-language', 'content-type', 'user-agent', 'authorization').
Adding host to this list breaks the API Gateway with 403 error, unless API Gateway is configured with custom domain names.
On the application layer we need to access the
Hostheader in the request object, however it's not equal to any of alternative domain names.As of now, header behaviour is hardcoded as
CacheHeaderBehavior.allowList('accept', 'accept-language', 'content-language', 'content-type', 'user-agent', 'authorization').Adding
hostto this list breaks the API Gateway with 403 error, unless API Gateway is configured with custom domain names.