Skip to content

Commit 0a754ce

Browse files
committed
ACP2E-3991: [Cloud] getRemoteAddress return 127.0.0.1 on Production
1 parent a8bc2a8 commit 0a754ce

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/etc/di.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2031,4 +2031,12 @@
20312031
<argument name="commandRenderer" xsi:type="object">Magento\Framework\Shell\CommandRendererBackground</argument>
20322032
</arguments>
20332033
</virtualType>
2034+
2035+
<type name="Magento\Framework\HTTP\PhpEnvironment\RemoteAddress">
2036+
<arguments>
2037+
<argument name="alternativeHeaders" xsi:type="array">
2038+
<item name="x-forwarded-for" xsi:type="string">HTTP_X_FORWARDED_FOR</item>
2039+
</argument>
2040+
</arguments>
2041+
</type>
20342042
</config>

0 commit comments

Comments
 (0)