File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
src/SignalR/samples/SignalRSamples Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 4
4
using System ;
5
5
using System . IO ;
6
6
using System . Reflection ;
7
- using System . Threading ;
8
7
using System . Threading . Tasks ;
9
8
using Microsoft . AspNetCore . Builder ;
10
9
using Microsoft . AspNetCore . Hosting ;
@@ -32,17 +31,6 @@ public void ConfigureServices(IServiceCollection services)
32
31
} )
33
32
. AddMessagePackProtocol ( ) ;
34
33
//.AddStackExchangeRedis();
35
-
36
- services . AddCors ( o =>
37
- {
38
- o . AddPolicy ( "Everything" , p =>
39
- {
40
- p . AllowAnyHeader ( )
41
- . AllowAnyMethod ( )
42
- . AllowAnyOrigin ( )
43
- . AllowCredentials ( ) ;
44
- } ) ;
45
- } ) ;
46
34
}
47
35
48
36
// 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)
55
43
app . UseDeveloperExceptionPage ( ) ;
56
44
}
57
45
58
- app . UseCors ( "Everything" ) ;
59
-
60
46
app . UseRouting ( routes =>
61
47
{
62
48
routes . MapHub < DynamicChat > ( "/dynamic" ) ;
You can’t perform that action at this time.
0 commit comments