Toggle Nav
My Cart 0

How to Validate HTTP_X_FORWARDED_FOR in Magento 2

How to Validate HTTP_X_FORWARDED_FOR in Magento 2

How to Validate HTTP_X_FORWARDED_FOR in Magento 2

Validate HTTP_X_FORWARDED_FOR to verify the forwarded address of a request matches what is store in the $_SESSION variable. By default, selected No in that field. To know how you can configure this setting from the Magento 2 admin panel for your online store, go with the following steps:

Steps for the set Validate HTTP_X_FORWARDED_FOR:

  • Step 1: Login with your Admin panel
  • Step 2: Go on the sidebar and click on the Stores option
  • Step 3: Then go on the Settings > Configuration
  • Step 4: Then expand the General tab and then click on the Web option
  • Step 5: Then select the Session Validation Settings section
  • Step 6: Then go on the Validate HTTP_X_FORWARDED_FOR field
    1. In that first uncheck the Use System Value checkbox.
    2. If you want to verify that the forwarded address of a request matches what is stored in the session variable, select "Yes" from the dropdown.
  • Step 7: If you are done with these configuration then click on the Save Config button.

validate HTTP X forwarded for steps
October 25, 2021
Did you like this post?
0
0