This commit is contained in:
Stephen Halter 2019-02-22 16:24:01 -08:00 committed by GitHub
parent 26d71e6ef6
commit 90e893ed07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 14 deletions

View File

@ -4,7 +4,6 @@
using System;
using System.IO;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
@ -32,17 +31,6 @@ namespace SignalRSamples
})
.AddMessagePackProtocol();
//.AddStackExchangeRedis();
services.AddCors(o =>
{
o.AddPolicy("Everything", p =>
{
p.AllowAnyHeader()
.AllowAnyMethod()
.AllowAnyOrigin()
.AllowCredentials();
});
});
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
@ -55,8 +43,6 @@ namespace SignalRSamples
app.UseDeveloperExceptionPage();
}
app.UseCors("Everything");
app.UseRouting(routes =>
{
routes.MapHub<DynamicChat>("/dynamic");