Skip to content

Commit e90906e

Browse files
committed
React to #7751
1 parent 2fd9e40 commit e90906e

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/SignalR/samples/SignalRSamples/Startup.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System;
55
using System.IO;
66
using System.Reflection;
7-
using System.Threading;
87
using System.Threading.Tasks;
98
using Microsoft.AspNetCore.Builder;
109
using Microsoft.AspNetCore.Hosting;
@@ -32,17 +31,6 @@ public void ConfigureServices(IServiceCollection services)
3231
})
3332
.AddMessagePackProtocol();
3433
//.AddStackExchangeRedis();
35-
36-
services.AddCors(o =>
37-
{
38-
o.AddPolicy("Everything", p =>
39-
{
40-
p.AllowAnyHeader()
41-
.AllowAnyMethod()
42-
.AllowAnyOrigin()
43-
.AllowCredentials();
44-
});
45-
});
4634
}
4735

4836
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
@@ -55,8 +43,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
5543
app.UseDeveloperExceptionPage();
5644
}
5745

58-
app.UseCors("Everything");
59-
6046
app.UseRouting(routes =>
6147
{
6248
routes.MapHub<DynamicChat>("/dynamic");

0 commit comments

Comments
 (0)