共用方式為


CorsPolicyBuilder.AllowAnyOrigin 方法

定義

確保原則允許任何來源。

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

傳回

目前的原則產生器。

適用於