Class AbpCorsPolicyService
Inheritance
AbpCorsPolicyService
Implements
ICorsPolicyService
Assembly: Volo.Abp.IdentityServer.Domain.dll
Syntax
public class AbpCorsPolicyService : ICorsPolicyService
Constructors
AbpCorsPolicyService(IDistributedCache<AllowedCorsOriginsCacheItem>, IServiceScopeFactory, IOptions<IdentityServerOptions>)
Declaration
public AbpCorsPolicyService(IDistributedCache<AllowedCorsOriginsCacheItem> cache, IServiceScopeFactory hybridServiceScopeFactory, IOptions<IdentityServerOptions> options)
Parameters
Properties
Cache
Declaration
protected IDistributedCache<AllowedCorsOriginsCacheItem> Cache { get; }
Property Value
HybridServiceScopeFactory
Declaration
protected IServiceScopeFactory HybridServiceScopeFactory { get; }
Property Value
Logger
Declaration
public ILogger<AbpCorsPolicyService> Logger { get; set; }
Property Value
Options
Declaration
protected IdentityServerOptions Options { get; }
Property Value
Type |
Description |
IdentityServerOptions |
|
Methods
CreateCacheItemAsync()
Declaration
protected virtual Task<AllowedCorsOriginsCacheItem> CreateCacheItemAsync()
Returns
IsOriginAllowedAsync(string)
Declaration
public virtual Task<bool> IsOriginAllowedAsync(string origin)
Parameters
Type |
Name |
Description |
string |
origin |
|
Returns
IsOriginAllowedAsync(string[], string)
Declaration
protected virtual Task<bool> IsOriginAllowedAsync(string[] allowedOrigins, string origin)
Parameters
Returns
Implements
IdentityServer4.Services.ICorsPolicyService
Extension Methods