一、该问题的重现步骤是什么?
web端连接没问题,后端接口地址

2. 下载rider后,配置国密sm2,运行在h5上

3.解决跨域问题

二、你期待的结果是什么?实际看到的又是什么?
期望获取token成功,
实际看到的:


服务器返回信息
Proxy error: Could not proxy request //blade-auth/oauth/token?tenantId=000000&username=admin&password=d700e30d123832c5145ebe26982f4cc2544a539777f62fcc82a32df7ed743646ffd73886c2b68bd629e6f3d8d996fe7b8de5ba4216694fac491c6786aee956198d6d428dfdadcc70da3d5be703079f6565c3dcb68b352ecccce7556d41846dc9b4e609b3b2&grant_type=password&scope=all from localhost:8080 to http://127.0.0.1 (ECONNREFUSED).
{
"data": "Proxy error: Could not proxy request //blade-auth/oauth/token?tenantId=000000&username=admin&password=d700e30d123832c5145ebe26982f4cc2544a539777f62fcc82a32df7ed743646ffd73886c2b68bd629e6f3d8d996fe7b8de5ba4216694fac491c6786aee956198d6d428dfdadcc70da3d5be703079f6565c3dcb68b352ecccce7556d41846dc9b4e609b3b2&grant_type=password&scope=all from localhost:8080 to http://127.0.0.1 (ECONNREFUSED).",
"statusCode": 500,
"header": {
"connection": "keep-alive",
"date": "Thu, 29 Jan 2026 09:26:51 GMT",
"keep-alive": "timeout=5",
"transfer-encoding": "chunked",
"x-powered-by": "Express"
},
"errMsg": "request:ok",
"config": {
"baseURL": "",
"method": "POST",
"url": "/api/blade-auth/oauth/token",
"params": {
"tenantId": "000000",
"username": "admin",
"password": "d700e30d123832c5145ebe26982f4cc2544a539777f62fcc82a32df7ed743646ffd73886c2b68bd629e6f3d8d996fe7b8de5ba4216694fac491c6786aee956198d6d428dfdadcc70da3d5be703079f6565c3dcb68b352ecccce7556d41846dc9b4e609b3b2",
"grant_type": "password",
"scope": "all"
},
"custom": {},
"header": {
"Content-Type": "application/json;charset=UTF-8",
"Tenant-Id": "000000",
"Blade-Requested-With": "BladeHttpRequest",
"Authorization": "Basic cmlkZXI6cmlkZXJfc2VjcmV0"
},
"timeout": 60000,
"dataType": "json",
"responseType": "text",
"withCredentials": false,
"fullPath": "/api/blade-auth/oauth/token?tenantId=000000&username=admin&password=d700e30d123832c5145ebe26982f4cc2544a539777f62fcc82a32df7ed743646ffd73886c2b68bd629e6f3d8d996fe7b8de5ba4216694fac491c6786aee956198d6d428dfdadcc70da3d5be703079f6565c3dcb68b352ecccce7556d41846dc9b4e609b3b2&grant_type=password&scope=all"
}
}
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
rider项目,windows操作系统,除开当前配置,唯有其他配置修改
四、请提供详细的错误堆栈信息,这很重要。
五、若有更多详细信息,请在下面提供。
扫一扫访问 Blade技术社区 移动端