1616using AbpCompanyName . AbpProjectName . Identity ;
1717
1818#if FEATURE_SIGNALR
19- using Owin ;
20- using Microsoft . Owin . Cors ;
2119using Microsoft . AspNet . SignalR ;
22- using AbpCompanyName . AbpProjectName . Owin ;
20+ using Microsoft . Owin . Cors ;
21+ using Owin ;
2322using Abp . Owin ;
23+ using AbpCompanyName . AbpProjectName . Owin ;
2424#endif
2525
2626namespace AbpCompanyName . AbpProjectName . Web . Host . Startup
2727{
2828 public class Startup
2929 {
30- private const string DefaultCorsPolicyName = "localhost" ;
30+ private const string _defaultCorsPolicyName = "localhost" ;
3131
3232 private readonly IConfigurationRoot _appConfiguration ;
3333
@@ -41,7 +41,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
4141 // MVC
4242 services . AddMvc ( options =>
4343 {
44- options . Filters . Add ( new CorsAuthorizationFilterFactory ( DefaultCorsPolicyName ) ) ;
44+ options . Filters . Add ( new CorsAuthorizationFilterFactory ( _defaultCorsPolicyName ) ) ;
4545 } ) ;
4646
4747 IdentityRegistrar . Register ( services ) ;
@@ -50,7 +50,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
5050 // Configure CORS for angular2 UI
5151 services . AddCors ( options =>
5252 {
53- options . AddPolicy ( DefaultCorsPolicyName , builder =>
53+ options . AddPolicy ( _defaultCorsPolicyName , builder =>
5454 {
5555 // App:CorsOrigins in appsettings.json can contain more than one address separated by comma.
5656 builder
@@ -94,7 +94,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
9494 {
9595 app . UseAbp ( ) ; // Initializes ABP framework.
9696
97- app . UseCors ( DefaultCorsPolicyName ) ; // Enable CORS!
97+ app . UseCors ( _defaultCorsPolicyName ) ; // Enable CORS!
9898
9999 app . UseStaticFiles ( ) ;
100100
0 commit comments