// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Net.Http; using System.Threading; using System.Threading.Tasks; using System.Web.Cors; namespace System.Web.Http.Cors { /// /// Provides an abstraction for getting the . /// public interface ICorsPolicyProvider { /// /// Gets the . /// /// The request. /// The token to monitor for cancellation requests. /// The . Task GetCorsPolicyAsync(HttpRequestMessage request, CancellationToken cancellationToken); } }