-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forward the Host header to the origin #82
Comments
Yeah, ApiGw expects Host to be Cloudfront. We would need to do mapping of original Host to something like X-Host. I would need to take a look what is recommended way of doing this in AWS. |
Any ETA on this? |
@DmitriyKabanov I did a research and to support this properly, we would need to create Edge Lambda that would handle renaming headers and forwarding them. No ETA yet, definitely bigger task than expected. Any chance you could provide me with your usecase? Aka. what are you using |
The use case is to build a redirectUrl to get back to the service. |
That sounds like something that can be done by many different ways.
|
For sure, it could be done by many different ways. |
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.The text was updated successfully, but these errors were encountered: