parent
26d71e6ef6
commit
90e893ed07
|
|
@ -4,7 +4,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
|
|
@ -32,17 +31,6 @@ namespace SignalRSamples
|
||||||
})
|
})
|
||||||
.AddMessagePackProtocol();
|
.AddMessagePackProtocol();
|
||||||
//.AddStackExchangeRedis();
|
//.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.
|
// 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.UseDeveloperExceptionPage();
|
||||||
}
|
}
|
||||||
|
|
||||||
app.UseCors("Everything");
|
|
||||||
|
|
||||||
app.UseRouting(routes =>
|
app.UseRouting(routes =>
|
||||||
{
|
{
|
||||||
routes.MapHub<DynamicChat>("/dynamic");
|
routes.MapHub<DynamicChat>("/dynamic");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue