Configure RedirectAllowedUrls

pull/10900/head
liangshiwei 4 years ago
parent 21ca80f49c
commit a5eba2fa67

@ -99,6 +99,7 @@ namespace MyCompanyName.MyProjectName.Blazor.Server
Configure<AppUrlOptions>(options =>
{
options.Applications["MVC"].RootUrl = configuration["App:SelfUrl"];
options.RedirectAllowedUrls.AddRange(configuration["App:RedirectAllowedUrls"].Split(','));
});
}

@ -1,6 +1,7 @@
{
"App": {
"SelfUrl": "https://localhost:44313"
"SelfUrl": "https://localhost:44313",
"RedirectAllowedUrls": "https://localhost:44313"
},
"ConnectionStrings": {
"Default": "Server=(LocalDb)\\MSSQLLocalDB;Database=MyProjectName;Trusted_Connection=True"

Loading…
Cancel
Save