ccerda0520/alternative-http-header
最新稳定版本:1.0.0
Composer 安装命令:
composer require ccerda0520/alternative-http-header
包简介
A Magento 2 module that uses a custom http remote address header used by Cloudflare or other CDN/proxies.
README 文档
README
A Magento 2 module that uses a custom http remote address header used by Cloudflare or other CDN/proxies.
Description
This Magento 2 module adds the HTTP_CF_CONNECTING_IP and HTTP_X_FORWARDED_FOR headers to be used within the application. By default Cloud Distribution Network (CDN) like Cloudflare or other proxies intercept the original server request and send a new request to the actual site server. By doing this, the server receives the CDN's remote address in the $_SERVER[REMOTE_ADDR] value which is not what we want. Functionality that relies on IP detection to do stuff doesnt function properly because of this. This extension lets magento know to search for values in $_SERVER[HTTP_CF_CONNECTING_IP] or SERVER[HTTP_X_FORWARDED_FOR] and use these values as the remote address if they exist.
Installation Instructions
Install using composer
composer require ccerda0520/alternative-http-header
php bin/magento module:enable CCerda_AlternativeHttpHeader
php bin/magento setup:upgrade
统计信息
- 总下载量: 55
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2020-04-08