Browse Source
Merge pull request #10900 from abpframework/liangshiwei/template
Configure RedirectAllowedUrls
pull/10901/head
maliming
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
1 deletions
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.Server/MyProjectNameBlazorModule.cs
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.Server/appsettings.json
|
|
@ -99,6 +99,7 @@ namespace MyCompanyName.MyProjectName.Blazor.Server |
|
|
Configure<AppUrlOptions>(options => |
|
|
Configure<AppUrlOptions>(options => |
|
|
{ |
|
|
{ |
|
|
options.Applications["MVC"].RootUrl = configuration["App:SelfUrl"]; |
|
|
options.Applications["MVC"].RootUrl = configuration["App:SelfUrl"]; |
|
|
|
|
|
options.RedirectAllowedUrls.AddRange(configuration["App:RedirectAllowedUrls"].Split(',')); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -1,6 +1,7 @@ |
|
|
{ |
|
|
{ |
|
|
"App": { |
|
|
"App": { |
|
|
"SelfUrl": "https://localhost:44313" |
|
|
"SelfUrl": "https://localhost:44313", |
|
|
|
|
|
"RedirectAllowedUrls": "https://localhost:44313" |
|
|
}, |
|
|
}, |
|
|
"ConnectionStrings": { |
|
|
"ConnectionStrings": { |
|
|
"Default": "Server=(LocalDb)\\MSSQLLocalDB;Database=MyProjectName;Trusted_Connection=True" |
|
|
"Default": "Server=(LocalDb)\\MSSQLLocalDB;Database=MyProjectName;Trusted_Connection=True" |
|
|
|