Partilhar via


CorsService.ApplyResult(CorsResult, HttpResponse) Método

Definição

Adiciona cabeçalhos de resposta específicos do CORS ao determinado 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)

Parâmetros

result
CorsResult

O CorsResult usado para ler os valores permitidos.

response
HttpResponse

O HttpResponse associado à chamada atual.

Implementações

Aplica-se a