7 instantiations of CorsOptions
Microsoft.AspNetCore.Cors.Test (7)
CorsMiddlewareTests.cs (1)
641var corsService = new CorsService(Options.Create(new CorsOptions()), NullLoggerFactory.Instance);
CorsOptionsTest.cs (3)
12var corsOptions = new CorsOptions(); 29var corsOptions = new CorsOptions(); 45var corsOptions = new CorsOptions();
CorsServiceTests.cs (1)
939options = options ?? new CorsOptions();
DefaultCorsPolicyProviderTests.cs (2)
15var options = new CorsOptions(); 35var options = new CorsOptions();
21 references to CorsOptions
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
295var corsOptions = _app.Services.GetRequiredService<IOptions<CorsOptions>>().Value;
CorsWebSite (1)
Startup.cs (1)
14services.Configure<CorsOptions>(options =>
Microsoft.AspNetCore.Cors (8)
CorsServiceCollectionExtensions.cs (2)
35/// <param name="setupAction">An <see cref="Action{CorsOptions}"/> to configure the provided <see cref="CorsOptions"/>.</param> 37public static IServiceCollection AddCors(this IServiceCollection services, Action<CorsOptions> setupAction)
EnableCorsAttribute.cs (1)
17/// name defined by <see cref="CorsOptions.DefaultPolicyName"/>.
Infrastructure\CorsService.cs (3)
19private readonly CorsOptions _options; 25/// <param name="options">The option model representing <see cref="CorsOptions"/>.</param> 27public CorsService(IOptions<CorsOptions> options, ILoggerFactory loggerFactory)
Infrastructure\DefaultCorsPolicyProvider.cs (2)
13private readonly CorsOptions _options; 19public DefaultCorsPolicyProvider(IOptions<CorsOptions> options)
Microsoft.AspNetCore.Cors.Test (6)
CorsOptionsTest.cs (3)
12var corsOptions = new CorsOptions(); 29var corsOptions = new CorsOptions(); 45var corsOptions = new CorsOptions();
CorsServiceTests.cs (1)
937private static CorsService GetCorsService(CorsOptions options = null)
DefaultCorsPolicyProviderTests.cs (2)
15var options = new CorsOptions(); 35var options = new CorsOptions();
Microsoft.AspNetCore.Mvc.Cors (4)
DependencyInjection\MvcCorsMvcCoreBuilderExtensions.cs (4)
33/// <param name="setupAction">An <see cref="Action{MvcOptions}"/> to configure the provided <see cref="CorsOptions"/>.</param> 37Action<CorsOptions> setupAction) 49/// Configures <see cref="CorsOptions"/>. 56Action<CorsOptions> setupAction)