Table of Contents

Interface ICorsPolicyService

Namespace
Fdyay.IdentityServer.Services
Assembly
Fdyay.IdentityServer.Core.dll

Decides whether a CORS origin is allowed for browser-based clients.

public interface ICorsPolicyService

Methods

IsOriginAllowedAsync(string, CancellationToken)

Returns true if the origin is allowed.

Task<bool> IsOriginAllowedAsync(string origin, CancellationToken cancellationToken = default)

Parameters

origin string
cancellationToken CancellationToken

Returns

Task<bool>