What is a full specification of X-Forwarded-Proto HTTP header?

后端 未结 3 1462
一生所求
一生所求 2020-11-29 04:53

What is a full specification of X-Forwarded-Proto HTTP header values?

3条回答
  •  萌比男神i
    2020-11-29 05:28

    There finally is RFC 7239 - Forwarded HTTP Extension from june 2014. The header is defined in section 5.4.

    Some examples:

    Forwarded: proto=https
    Forwarded: for=1.2.3.4;proto=http
    

    I just hope this won't take too much time to get widely adopted. An example of the diversity of headers because of standard lacking (from here):

    • X-Forwarded-Proto: https (de facto standard)
    • X-Forwarded-Protocol: https
    • X-Forwarded-Ssl: on
    • X-Url-Scheme: https
    • Front-End-Https: on

提交回复
热议问题