Sdílet prostřednictvím


ICorsService.ApplyResult(CorsResult, HttpResponse) Metoda

Definice

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

public:
 void ApplyResult(Microsoft::AspNetCore::Cors::Infrastructure::CorsResult ^ result, Microsoft::AspNetCore::Http::HttpResponse ^ response);
public 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
Public 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í.

Platí pro