CorsPolicyBuilder.AllowAnyMethod 方法

定义

确保策略允许任何方法。

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

返回

当前策略生成器。

适用于