CorsService.EvaluatePreflightRequest Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.