返回403
来源:4-4 登录态保持与接口鉴权处理
慕设计7341579
2026-04-23
hineterror:DioException [bad response]: This exception was thrown because the response has a status code of 403 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 403 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.
Instance of 'NeedAuth’
这下面是部分源码:
var request = NoticeRequest();
//request.add("pageIndex", 1);
//request.add("pageSize", 10);
request
//.addHeader("boarding-pass", "C52A1728648D16035C37CC654A1F6D0EAF")
.addHeader("auth-token", "ZmEtMjAyMS0wNC0xMiAyMToyMjoyMC1mYQ==fa");
var notice = await HiNet.getInstance().fire(request);
试了很多次都不能出面这个403。出现权限问题。
写回答
1回答
-
CrazyCodeBoy
2026-05-14
先登陆成功后,携带token访问后续接口00
相似问题