Hi. I hope you all doing well.
I have tried to solve this issue with Shopify partner support but it wasn’t successful.
Our app has a theme app extension and needs the user’s IP for our app functionality. As the documents say app proxy sends the user’s IP through the “X-Forwarded-For” header to the backend and it was working correctly.
But since last week we recognized that Shopify App proxy is not sending the correct IPs anymore! Instead of the user IP, the returned IP to our backend is the Cloudflare services IP.
These are the IPs that we have received in “X-Forwarded-For” and when you check you’ll see they are from Cloudflare:
162.158.2.162
2a06:98c0:3600::103
Shopify support suggested using “CF-Connecting-IP” but it is null. I am already checking all the headers that possibly would contain the user’s IP and only “X-Forwarded-For” has the IP but not the IP for the user.
Do you know how to solve this issue?
Is there anyone from Shopify here to check this issue for us? We are disappointed by the Shopify partner support and they don’t answer our ticket anymore after one response.
Thanks in advance.