What is the use of Offloader header in CDN?
What is the difference between SSL_OFFLOADED & X-Forwarded-Proto.
When to use it? Is there any other type as well apart from above two?
|
|
|
There is no difference. The default offloader header in Magento 2 is
Basically, you can call the header however you want, you just have to make sure that your SSL terminator sends it. If you are not sure, |
|||||||||||||
|
|
Offloader header and HTTPS server variable are used by Magento 2 to figure out if request is secure (https). if you don't set server variable HTTPS
then magento checks Offloader header: vendor/magento/framework/App/Request/Http.php
see initialRequestSecure function, if Offloader header (or HTTP_{Offloader header}) is set to https then request is secure. |
|||
|
|