CorsPolicyBuilder.AllowAnyHeader 方法

定义

确保策略允许任何标头。

public:
 Microsoft::AspNetCore::Cors::Infrastructure::CorsPolicyBuilder ^ AllowAnyHeader();
public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder AllowAnyHeader ();
member this.AllowAnyHeader : unit -> Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder
Public Function AllowAnyHeader () As CorsPolicyBuilder

返回

当前策略生成器。

适用于