共用方式為


CorsService.ApplyResult(CorsResult, HttpResponse) 方法

定義

將 CORS 特定的回應標頭新增至指定的 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)

參數

result
CorsResult

CorsResult用來讀取允許值的 。

response
HttpResponse

HttpResponse 目前呼叫相關聯的 。

實作

適用於