// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, UserManager <IdentityUser> userManager) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseHsts(); } app.UseCors(builder => builder.WithOrigins("http://localhost:3000", "https://aplikacjakulinarna.azurewebsites.net", "http://aplikacjakulinarna.azurewebsites.net") .AllowAnyHeader() .AllowAnyMethod() .AllowCredentials()); app.UseAuthentication(); app.UseHttpsRedirection(); app.UseMvc(); IdentitySeed.SeedUser(userManager); }