Sdílet prostřednictvím


CorsService.ApplyResult(CorsResult, HttpResponse) Metoda

Definice

Přidá hlavičky odpovědi specifické pro CORS k danému response.

public:
 virtual void ApplyResult(Microsoft::AspNetCore::Cors::Infrastructure::CorsResult ^ result, Microsoft::AspNetCore::Http::HttpResponse ^ response);
public virtual void ApplyResult (Microsoft.AspNetCore.Cors.Infrastructure.CorsResult result, Microsoft.AspNetCore.Http.HttpResponse response);
abstract member ApplyResult : Microsoft.AspNetCore.Cors.Infrastructure.CorsResult * Microsoft.AspNetCore.Http.HttpResponse -> unit
override this.ApplyResult : Microsoft.AspNetCore.Cors.Infrastructure.CorsResult * Microsoft.AspNetCore.Http.HttpResponse -> unit
Public Overridable Sub ApplyResult (result As CorsResult, response As HttpResponse)

Parametry

result
CorsResult

Slouží CorsResult ke čtení povolených hodnot.

response
HttpResponse

Hodnota přidružená HttpResponse k aktuálnímu volání.

Implementuje

Platí pro