in src/app/ContosoTraders.Api.Core/DependencyInjection.cs [113:128]
private static void ConfigureAspNetCoreServices(IServiceCollection services, IConfiguration configuration)
{
services.AddControllers();
services.AddEndpointsApiExplorer();
services.AddSwaggerGen();
var appInsightsConnectionString = configuration[KeyVaultConstants.SecretNameAppInsightsConnectionString];
services.AddApplicationInsightsTelemetry(options => options.ConnectionString = appInsightsConnectionString);
// @TODO: Temporary. Fix later.
services.AddCors(options =>
options.AddPolicy(_allowSpecificOrigins,
policy => policy.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod()));
IdentityModelEventSource.ShowPII = true;
}