DefaultCorsPolicyProvider 类

定义

可以为特定 HttpContext提供 CorsPolicy 的类型。

public ref class DefaultCorsPolicyProvider : Microsoft::AspNetCore::Cors::Infrastructure::ICorsPolicyProvider
public class DefaultCorsPolicyProvider : Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProvider
type DefaultCorsPolicyProvider = class
    interface ICorsPolicyProvider
Public Class DefaultCorsPolicyProvider
Implements ICorsPolicyProvider
继承
DefaultCorsPolicyProvider
实现

构造函数

DefaultCorsPolicyProvider(IOptions<CorsOptions>)

创建 DefaultCorsPolicyProvider 的新实例。

方法

GetPolicyAsync(HttpContext, String)

CorsPolicy从给定的 中获取context

适用于