ICorsService.ApplyResult(CorsResult, HttpResponse) 方法

定义

将 CORS 特定的响应标头添加到给定 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)

参数

result
CorsResult

CorsResult用于读取允许的值的 。

response
HttpResponse

HttpResponse 当前调用关联的 。

适用于