修改配置#
打开 *.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