I facing and issue related to AWS CloudFront and my WordPress website.
WP website is behind AWS CF and it utilizes a third party service, let's assume it's a verification service.
Scenario is like WP website receives a request from user and it then internally requests verification service and provides a response to user.
WP website has to be registered and whitelisted with the verification service first.
The issue is that when the WP website is behind CF, verification service gets the IP of CF and as it's not whitelisted beforehand it gets an authorization error. Without CF it's working fine as intended.
I have tried using X-Forwarded_For request headers but to no avail. I am sure it's my lack of understanding of AWS which is causing the issue.
Can someone please help and or guide me to the right direction?
Thanks.