다음을 통해 공유


MvcCorsMvcCoreBuilderExtensions.AddCors 메서드

정의

오버로드

AddCors(IMvcCoreBuilder)

CORS를 IMvcCoreBuilder 사용하도록 구성합니다.

AddCors(IMvcCoreBuilder, Action<CorsOptions>)

CORS를 IMvcCoreBuilder 사용하도록 구성합니다.

AddCors(IMvcCoreBuilder)

Source:
MvcCorsMvcCoreBuilderExtensions.cs
Source:
MvcCorsMvcCoreBuilderExtensions.cs
Source:
MvcCorsMvcCoreBuilderExtensions.cs

CORS를 IMvcCoreBuilder 사용하도록 구성합니다.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddCors (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder);
static member AddCors : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddCors (builder As IMvcCoreBuilder) As IMvcCoreBuilder

매개 변수

반환

IMvcCoreBuilder

적용 대상

AddCors(IMvcCoreBuilder, Action<CorsOptions>)

Source:
MvcCorsMvcCoreBuilderExtensions.cs
Source:
MvcCorsMvcCoreBuilderExtensions.cs
Source:
MvcCorsMvcCoreBuilderExtensions.cs

CORS를 IMvcCoreBuilder 사용하도록 구성합니다.

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

매개 변수

setupAction
Action<CorsOptions>

제공된 CorsOptions를 구성하는 Action<T>입니다.

반환

IMvcCoreBuilder

적용 대상