Property CorsEnabled
Master switch for CORS on browser-facing OIDC endpoints (/.well-known/*,
/connect/token, /connect/userinfo, /connect/revocation,
/connect/introspect, /connect/logout). Required for SPA / native PKCE
clients calling these endpoints from a browser context.
Endpoints that perform browser redirects (/connect/authorize, /login,
/mfa, /consent, federation callback) and the management API
(/api/v1/identity/*, /scim/*) NEVER receive CORS headers regardless of this
flag — those flows are not initiated from cross-origin fetch/XHR.
Default: false.
public bool CorsEnabled { get; set; }