修改配置#
打開 *.Web\Properties\launchSettings.json
,參考以下配置 :
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:44372/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": false,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"XXW.IDCloud.Web": {
"commandName": "Project",
"launchBrowser": false,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://*:44372/"
}
}
}
再打開該 Web 專案的 appsettings.json
檔案,作出以下修改:
{
"App": {
"SelfUrl": "http://localhost:44372"
},
}
注意#
將 Web 專案改為 HTTP 啟動後,請求一些介面後會響應 400 但並未其他訊息
解決辦法:abp/issues/14089