Пример #1
0
        public void Configure(IApplicationBuilder app)
        {
            app.UseStaticFiles();
            SwaggerConfig.Init(app);
            app.UseDeveloperExceptionPage();

            app.UseCors(cors =>
            {
                cors.AllowAnyHeader();
                cors.AllowAnyMethod();
                cors.AllowAnyOrigin();
            });
            app.UseAuthentication();
            app.UseMvc();
        }