Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Duende.​IdentityServer.​Configuration.​CorsOptions

Assembly: Duende.IdentityServer

Inheritance: object → CorsOptions

CORS policy settings for IdentityServer's protocol endpoints. The underlying CORS implementation is provided by ASP.NET Core and is automatically registered in the dependency injection system.

Properties

public string
CorsPolicyName
Gets or sets the name of the ASP.NET Core CORS policy evaluated for requests to IdentityServer endpoints.
Remarks Defaults to <c>"IdentityServer"</c> . The policy is implemented in terms of the <c>ICorsPolicyService</c> registered in the DI container. To customize which origins are allowed, provide a custom implementation of <c>ICorsPolicyService</c> rather than replacing this policy name.
PreflightCacheDuration
Gets or sets the value used for the <c>Access-Control-Max-Age</c> response header on CORS preflight requests.
Remarks Defaults to <c>null</c> , which means no <c>Access-Control-Max-Age</c> header is emitted and browsers use their own default preflight cache duration.
Gets or sets the IdentityServer endpoint paths for which CORS is supported.
Remarks Defaults to the discovery, user info, token, and revocation endpoints.

Methods

public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object