在发布我的问题之前,我已经经历了不同的答案,但我需要一些帮助才能解决问题。这是我部署的 appsettings 示例:
{
"ConnectionStrings": {
"DefaultConnection": "Server=tcp:mywebdb.windows.net,1433;Initial Catalog=mydb;User ID=myuserid;Password=mypass;"
},
"Clients": [
{
"ClientId": "spa",
"ClientName": "SPA Client",
"AllowedGrantTypes": [
"authorization_code"
]
"RedirectUris": [
"http://localhost:4200/callback",
"https://localhost:4200/callback",
"http://localhost:4200",
"https://localhost:4200",
"http://localhost:4200/auth/login",
"https://localhost:4200/auth/login",
"https://google.com",
"https://bing.com",
"https://test.com",
"https://nba.com"
],
"PostLogoutRedirectUris": [
"http://localhost:4200/auth/login",
"https://localhost:4200/auth/login"
],
"AllowedCorsOrigins": [
"http://localhost:4200",
"https://localhost:4200"
]
}
]
}
我想覆盖“RedirectUris”和“AllowedCorsOrigins”数组中的值,我在 azure 的应用程序设置中尝试了类似 Clients:RedirectUris:8 但它不起作用。我应该做其他事情还是做其他事情才能使它正常工作?