// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ApplicationDbContext context) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } // ******************** // USE CORS - might not be required. // ******************** app.UseCors("SiteCorsPolicy"); app.UseAuthentication(); app.UseMvc(); SeedDb.InitDb(context); }