Dela via


CorsService.EvaluatePreflightRequest Method

Definition

Evaluate a preflight request using the specified policy. The result is set on the specified CorsResult instance.

public:
 virtual void EvaluatePreflightRequest(Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::AspNetCore::Cors::Infrastructure::CorsPolicy ^ policy, Microsoft::AspNetCore::Cors::Infrastructure::CorsResult ^ result);
public virtual void EvaluatePreflightRequest (Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy, Microsoft.AspNetCore.Cors.Infrastructure.CorsResult result);
abstract member EvaluatePreflightRequest : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy * Microsoft.AspNetCore.Cors.Infrastructure.CorsResult -> unit
override this.EvaluatePreflightRequest : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy * Microsoft.AspNetCore.Cors.Infrastructure.CorsResult -> unit
Public Overridable Sub EvaluatePreflightRequest (context As HttpContext, policy As CorsPolicy, result As CorsResult)

Parameters

context
HttpContext

The current HTTP context.

policy
CorsPolicy

The CorsPolicy to evaluate.

result
CorsResult

The CorsResult to set the result on.

Applies to