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

返回

当前策略生成器。

适用于