共用方式為


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

傳回

目前的原則產生器。

適用於