# CORS Policy Service

> Documentation for the ICorsPolicyService interface which determines if CORS requests from specific origins are allowed to access protocol endpoints.

#### Duende.IdentityServer.Stores.ICorsPolicyService

[Section titled âDuende.IdentityServer.Stores.ICorsPolicyServiceâ](#duendeidentityserverstoresicorspolicyservice)

Used to determine if CORS requests are allowed to certain protocol endpoints.

```cs
/// <summary>
/// Service that determines if CORS is allowed.
/// </summary>
public interface ICorsPolicyService
{
    /// <summary>
    /// Determines whether origin is allowed.
    /// </summary>
    /// <param name="origin">The origin.</param>
    /// <returns></returns>
    Task<bool> IsOriginAllowedAsync(string origin);
}
```
-----