forked from aspnet/AspNetWebStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathICorsEngine.cs
More file actions
19 lines (18 loc) · 764 Bytes
/
Copy pathICorsEngine.cs
File metadata and controls
19 lines (18 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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.
namespace System.Web.Cors
{
/// <summary>
/// Provides an abstraction for evaluating CORS requests based on <see cref="CorsPolicy"/>.
/// </summary>
public interface ICorsEngine
{
/// <summary>
/// Evaluates the policy.
/// </summary>
/// <param name="requestContext">The <see cref="CorsRequestContext"/>.</param>
/// <param name="policy">The <see cref="CorsPolicy"/>.</param>
/// <returns>The <see cref="CorsResult"/></returns>
CorsResult EvaluatePolicy(CorsRequestContext requestContext, CorsPolicy policy);
}
}