Error Code 406 When Request an OAuth2 Token from External 请求外部的OAuth2令牌得到代码406
In my case, I put Accept type into the request Header and it does work. Code snippet with pseudo data: Welcome to share your situation and solution. For more info about Header https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept 我在http请求的Header中添加了Accept的类型,一切就正常了。 含有瞎编信息的代码如下: 如果你有其它解决方案也可以分享。 关于Header的帮助主题 https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept