Authorize.net Direct post showing x_client_ip 127.0.0.1 with Varnish cache #14602
Labels
Component: Authorizenet
Component: Framework/Cache
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Reproduced on 2.2.x
The issue has been reproduced on latest 2.2 release
Reproduced on 2.3.x
The issue has been reproduced on latest 2.3 release
On a magento 2 server configured as recommended in the Magento website documentation behind a Varnish->nginx cache using the default.vcl spit out of Magento, when I try to run a payment through authorize.net, it sends x_client_ip as 127.0.0.1
Preconditions
Magento v2.2.2
apache2 v2.4.18
varnishd v4.1.1
nginx v1.10.3
php7.0
Steps to reproduce
Generated a live payment request using the direct post support in Magento2 for Authorize.net. Checked the content in the browser's Network inspect window for transact.dll (at authorize)
Expected result
Presumably it reads the HTTP server variable REMOTE_ADDR
I'm guessing it might need to read the value of X-Forwarded-For when it exists because the server is running behind a cache.
Actual result
in the Network tab of the browser for transact.dll, I can see in the outgoing parameters x_client_ip is 127.0.0.1
The text was updated successfully, but these errors were encountered: