Partager via


MvcCorsMvcCoreBuilderExtensions.AddCors Méthode

Définition

Surcharges

AddCors(IMvcCoreBuilder)

IMvcCoreBuilder Configure pour utiliser CORS.

AddCors(IMvcCoreBuilder, Action<CorsOptions>)

IMvcCoreBuilder Configure pour utiliser CORS.

AddCors(IMvcCoreBuilder)

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

IMvcCoreBuilder Configure pour utiliser CORS.

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

Paramètres

builder
IMvcCoreBuilder

L’IMvcCoreBuilderopérateur

Retours

L’IMvcCoreBuilderopérateur

S’applique à

AddCors(IMvcCoreBuilder, Action<CorsOptions>)

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

IMvcCoreBuilder Configure pour utiliser CORS.

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

Paramètres

builder
IMvcCoreBuilder

L’IMvcCoreBuilderopérateur

setupAction
Action<CorsOptions>

Action<T> pour configurer le CorsOptions fourni.

Retours

L’IMvcCoreBuilderopérateur

S’applique à