reactjs - 代理的 launchSettings.json 应用程序 url
问题描述
我试图代理对我的 api localhost 做出反应。这是 launchsettings.json 的样子
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:63701",
"sslPort": 44318
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"ByeBug_API": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
我一直无法做到。其中哪一个是 api 运行的,所以我可以用我的 React 访问它?你会认为是"sslPort": 44318
,但它不起作用
解决方案
推荐阅读
- python - 在 JIRA python API 中,如何从问题中获取某些字段?
- javascript - 如何在 JavaScript 中存储多个值和一个键?
- c# - WPF ReactiveUI 控件 - 占用所有可用空间
- c++ - Qt sql驱动,Qt解析sql语句
- html - 如何将特定内容居中?
- docker - 来自 Jenkins docker push 抛出“未经授权:BAD_CREDENTIAL”
- javascript - React - 在父组件中调用一个函数来访问状态
- json - 如何将 600MB 大 json 文件批量插入到 elasticsearch?
- java - 如何从java中的jsonSchema2Pojo生成的文件中排除equals和hashcode中的字段
- python - 如何返回只有一个字符串元素的列表?Python