你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IpSecurityRestriction.Headers 属性

定义

获取或设置 IP 限制规则标头。 X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples) 。 匹配的逻辑为 。

  • 如果 属性为 null 或空 (默认) ,则允许所有主机 (或缺少) 。
  • 使用序号-ignore-case ((不包括端口号) )比较值。
  • 子域通配符允许使用,但不匹配根域。 例如,*.contoso.com 匹配子域 foo.contoso.com,但与根域 contoso.com 或多级 foo.bar.contoso.com
  • 允许使用 Unicode 主机名,但应转换为 Punycode 进行匹配。

X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples) 。 匹配的逻辑为 。

  • 如果 属性为 null 或空 (默认) ,则允许任何转发的 for 链 (或缺少) 。
  • 如果任何地址 (链中不包括端口号) (逗号分隔) 与 属性定义的 CIDR 匹配。

X-Azure-FDID 和 X-FD-HealthProbe。 匹配的逻辑完全匹配。

[Newtonsoft.Json.JsonProperty(PropertyName="headers")]
public System.Collections.Generic.IDictionary<string,System.Collections.Generic.IList<string>> Headers { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="headers")>]
member this.Headers : System.Collections.Generic.IDictionary<string, System.Collections.Generic.IList<string>> with get, set
Public Property Headers As IDictionary(Of String, IList(Of String))

属性值

属性
Newtonsoft.Json.JsonPropertyAttribute

适用于