CorsService CorsService CorsService Class

Definition

Default implementation of ICorsService.

public class CorsService : Microsoft.AspNetCore.Cors.Infrastructure.ICorsService
type CorsService = class
    interface ICorsService
Public Class CorsService
Implements ICorsService
Inheritance
CorsServiceCorsServiceCorsService
Implements

Constructors

CorsService(IOptions<CorsOptions>) CorsService(IOptions<CorsOptions>) CorsService(IOptions<CorsOptions>)

Creates a new instance of the CorsService.

CorsService(IOptions<CorsOptions>, ILoggerFactory) CorsService(IOptions<CorsOptions>, ILoggerFactory) CorsService(IOptions<CorsOptions>, ILoggerFactory)

Creates a new instance of the CorsService.

Methods

ApplyResult(CorsResult, HttpResponse) ApplyResult(CorsResult, HttpResponse) ApplyResult(CorsResult, HttpResponse)
EvaluatePolicy(HttpContext, CorsPolicy) EvaluatePolicy(HttpContext, CorsPolicy) EvaluatePolicy(HttpContext, CorsPolicy)
EvaluatePolicy(HttpContext, String) EvaluatePolicy(HttpContext, String) EvaluatePolicy(HttpContext, String)

Looks up a policy using the policyName and then evaluates the policy using the passed in context.

EvaluatePreflightRequest(HttpContext, CorsPolicy, CorsResult) EvaluatePreflightRequest(HttpContext, CorsPolicy, CorsResult) EvaluatePreflightRequest(HttpContext, CorsPolicy, CorsResult)
EvaluateRequest(HttpContext, CorsPolicy, CorsResult) EvaluateRequest(HttpContext, CorsPolicy, CorsResult) EvaluateRequest(HttpContext, CorsPolicy, CorsResult)

Applies to