-
Notifications
You must be signed in to change notification settings - Fork 115
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
How to add header CloudFront-Is-Mobile-Viewer in AWS Amplify? #3322
Comments
Hi @caiodounis 👋🏽 thanks for raising this question. We do not have a way of allowing customers to use this CloudFront header at this time but we are tracking this as a feature request. |
This has been identified as a feature request. If this feature is important to you, we strongly encourage you to give a 👍 reaction on the request. This helps us prioritize new features most important to you. Thank you! |
Hi @hloriana thanks for the reply! |
This feature has just been supported with our latest launch! Closing. Check out the details here: https://aws.amazon.com/blogs/mobile/cdn-caching-improvements-for-better-app-performance-with-aws-amplify-hosting/ |
This issue is now closed. Comments on closed issues are hard for our team to see. |
This issue has been automatically locked. |
Before opening, please confirm:
App Id
dnzn4ifojcrc4
AWS Region
us-east-1
Amplify Hosting feature
Custom headers
Question
I'm using nextjs 13 with aws amplify, and I'm trying to identify the user's device using the request header
user-agent
but I can see the header is coming with a fixed valueAmazon Cloudfront
. After a brief research I saw a couple of tutorials on how to add the headers likeCloudFront-Is-Mobile-Viewer
in a cloudfront distribution, but I wasn't able to do that in AWS Amplify. How can I add that header in the request headers in AWS Amplify?The text was updated successfully, but these errors were encountered: