// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { services.AddCors(options => { options.AddPolicy(_myCorsOrigins, builder => { builder.WithOrigins("http://localhost:3000") .AllowAnyHeader() .AllowAnyMethod() .AllowCredentials(); }); }); // services.AddControllers(); services.AddMvc(); ServicesConfiguration.RegisterDependencies(services); CommonConfiguration.RegisterDependencies(services); // services.AddSwaggerGen(c => // { // c.SwaggerDoc("v1", new OpenApiInfo { Title = "Bancassurance API", Version = "v1" }); // }); }