Partilhar via


CorsService.EvaluatePreflightRequest Método

Definição

Avalie uma solicitação de pré-vôo usando a política especificada. O resultado é definido na instância especificada CorsResult .

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)

Parâmetros

context
HttpContext

O contexto HTTP atual.

policy
CorsPolicy

O CorsPolicy a ser avaliado.

result
CorsResult

O CorsResult no qual definir o resultado.

Aplica-se a