次の方法で共有


MvcCorsMvcCoreBuilderExtensions.ConfigureCors メソッド

定義

CorsOptions を構成する。

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder ConfigureCors (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.AspNetCore.Cors.Infrastructure.CorsOptions> setupAction);
static member ConfigureCors : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.AspNetCore.Cors.Infrastructure.CorsOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function ConfigureCors (builder As IMvcCoreBuilder, setupAction As Action(Of CorsOptions)) As IMvcCoreBuilder

パラメーター

setupAction
Action<CorsOptions>

構成アクション。

戻り値

IMvcCoreBuilder

適用対象