Skip to content

Commit ee18415

Browse files
committed
configs
1 parent 2d7bb22 commit ee18415

File tree

3 files changed

+4
-96
lines changed

3 files changed

+4
-96
lines changed

src/Infrastructure/Infrastructure/ServicesExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ private static IServiceCollection AddCustomCors(this IServiceCollection services
292292
options.AddPolicy(Constants.DefaultCorsPolicy,
293293
builder =>
294294
{
295-
var corsList = configuration.GetSection("CorsOrigins").Get<List<string>>().ToArray();
295+
var corsList = configuration.GetSection("CorsOrigins").Get<List<string>>()?.ToArray() ?? new string[] { };
296296
builder.WithOrigins(corsList)
297297
.AllowAnyMethod()
298298
.AllowAnyHeader();

src/Presentation/STS/appsettings.json

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,7 @@
44
},
55
"CorsOrigins": [
66
"https://aspnetcorespa.fullstackpro.xyz",
7-
"https://aspnetcorespa.azurewebsites.net",
8-
"https://ngnode-fullstack.azurewebsites.net",
9-
"https://reactnode-fullstack.azurewebsites.net",
10-
"https://vuenode-fullstack.azurewebsites.net",
11-
"https://aspnetcorespa.herokuapp.com",
12-
"https://ngnode-fullstack.herokuapp.com",
13-
"https://reactnode-fullstack.herokuapp.com",
14-
"https://vuenode-fullstack.herokuapp.com",
15-
"https://asahi.ukwest.cloudapp.azure.com",
16-
"https://angularspa.web.app",
17-
"https://angularspa.firebaseapp.com",
18-
"https://angularspa.netlify.com",
19-
"https://angularspa.now.sh",
20-
"https://angularspa.asadsahi.now.sh",
21-
"https://angularspa.onrender.com",
22-
"https://ngspa.azurewebsites.net",
23-
"https://ngspa.herokuapp.com",
24-
"https://angularspa.surge.sh",
25-
"https://asadsahi.github.io",
26-
"https://asadsahi.github.io/angularspa",
27-
"https://rctspa.web.app",
28-
"https://reactspa.now.sh",
29-
"https://asadsahi.github.io/reactspa",
30-
"https://rctspa.herokuapp.com",
31-
"https://rctspa.azurewebsites.net",
32-
"https://rctspa.netlify.com",
33-
"https://reactspa.onrender.com",
34-
"https://reactspa.surge.sh",
35-
"http://localhost:4200/angularspa",
36-
"http://localhost:4200",
37-
"https://localhost:5005",
38-
"http://localhost:3000",
39-
"http://localhost:5050",
40-
"https://localhost:5050",
41-
"https://asadsahi.xyz"
7+
"https://localhost:5005"
428
],
439
"IdentityServer": {
4410
"Key": {

src/Presentation/Web/appsettings.json

Lines changed: 2 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -6,65 +6,7 @@
66
},
77
"Auth": {
88
"Authority": "https://identityserver.fullstackpro.xyz",
9-
"Audiences": [
10-
"httpsaspnetcorespafullstackproxyz",
11-
"httpsaspnetcorespaazurewebsitesnet",
12-
"httpsngnode-fullstackazurewebsitesnet",
13-
"httpsreactnode-fullstackazurewebsitesnet",
14-
"httpsvuenode-fullstackazurewebsitesnet",
15-
"httpsaspnetcorespaherokuappcom",
16-
"httpsngnode-fullstackherokuappcom",
17-
"httpsreactnode-fullstackherokuappcom",
18-
"httpsvuenode-fullstackherokuappcom",
19-
"httpsasahiukwestcloudappazurecom",
20-
"httpsangularspawebapp",
21-
"httpsangularspafirebaseappcom",
22-
"httpsangularspanetlifycom",
23-
"httpsangularspanowsh",
24-
"httpsangularspaasadsahinowsh",
25-
"httpsangularspaonrendercom",
26-
"httpsngspaazurewebsitesnet",
27-
"httpsngspaherokuappcom",
28-
"httpsangularspasurgesh",
29-
"httpsasadsahigithubioangularspa",
30-
"httpsrctspawebapp",
31-
"httpsreactspanowsh",
32-
"httpsasadsahigithubioreactspa",
33-
"httpsrctspaherokuappcom",
34-
"httpsrctspaazurewebsitesnet",
35-
"httpsrctspanetlifycom",
36-
"httpsreactspaonrendercom",
37-
"httpsreactspasurgesh",
38-
"httplocalhost4200angularspa",
39-
"httplocalhost4200",
40-
"httpslocalhost5005",
41-
"httplocalhost3000reactspa",
42-
"httplocalhost3000"
43-
]
9+
"Audiences": ["httpsaspnetcorespafullstackproxyz", "httpslocalhost5005"]
4410
},
45-
"CorsOrigins": [
46-
"https://angularspa.web.app",
47-
"https://angularspa.firebaseapp.com",
48-
"https://angularspa.netlify.com",
49-
"https://angularspa.now.sh",
50-
"https://angularspa.asadsahi.now.sh",
51-
"https://angularspa.onrender.com",
52-
"https://ngspa.azurewebsites.net",
53-
"https://ngspa.herokuapp.com",
54-
"https://angularspa.surge.sh",
55-
"https://asadsahi.github.io",
56-
"https://asadsahi.github.io/angularspa",
57-
"https://rctspa.web.app",
58-
"https://reactspa.now.sh",
59-
"https://asadsahi.github.io/reactspa",
60-
"https://rctspa.herokuapp.com",
61-
"https://rctspa.azurewebsites.net",
62-
"https://rctspa.netlify.com",
63-
"https://reactspa.onrender.com",
64-
"https://reactspa.surge.sh",
65-
"http://localhost:4200/angularspa",
66-
"http://localhost:4200",
67-
"http://localhost:3000/reactspa",
68-
"http://localhost:3000"
69-
]
11+
"CorsOrigins": []
7012
}

0 commit comments

Comments
 (0)