다음을 통해 공유


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

적용 대상