Proxy rewrite (200) on Amplify and IP forwarding

0

For reasons related to domain usage I am proxying some landing pages from pardot. one of the things I noticed is that the inferred IP of the client in Pardot is always aws server when I use a 200 rewrite.

What headers are transferred? how can i make sure x-forwarded-for is set on rewrites? Also suggestions to how to test this will be appreciated.

Thanks,

Yaron

ymeiner
질문됨 10달 전290회 조회
2개 답변
0
수락된 답변

Thank you for reaching out us regarding the above query.

As mentioned in the below GitHub Issue by internal team, as Amplify uses CloudFront for hosting the application hence, according to the documentation here, Cloudfront removes some request headers while processing the request. You may refer to the headers which are being forwarded by CloudFront.

[+]. GitHub Issue : https://github.com/aws-amplify/amplify-hosting/issues/2316

Further, for performing tests at my end, I used the third party tool - 'https://public.requestbin.com/' for creating a public http endpoint and capturing the requests which are coming from the Amplify application. I could observe that the - 'X-Forwarded-For' header was present in the request (which was my IP). You can also use the above tool for testing at your end.

Having said that, in case you face further challenges, please feel free to open a support case with AWS using the following link.

AWS
지원 엔지니어
답변함 10달 전
profile picture
전문가
검토됨 한 달 전
0

thanks i did the same, x-forwarded-for exists so its more of a pardot issue. thanks!

ymeiner
답변함 10달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠