页面端HTTP命令直接执行返回正常。
一模一样的放到服务端HTTP命令却返回401错误,有没有朋友遇到过一样的问题?
Http方法:POST
StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers: { Cache-Control: no-cache Pragma: no-cache Server: Microsoft-IIS/10.0 X-Correlation-Id: 58092d4f-f7ff-4d6e-9d8e-5b355d29d1d9 X-Rate-Limit-Limit: 10000 X-Rate-Limit-Remaining: 9999 X-Rate-Limit-Reset: 1616300046.98567 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Access-Control-Allow-Origin: * Access-Control-Allow-Headers: x-requested-with, Authorization, X-Auth-Token, AuthToken, Content-Type Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT Access-Control-Max-Age: 3600 Date: Sun, 21 Mar 2021 03:14:07 GMT Expires: -1 Content-Length: 0 }
|