【发布时间】:2015-08-10 22:02:51
【问题描述】:
当我在 Angular JS(使用 IE 11)中执行 http post 时,OAuthValidateClientAuthenticationContext 表单正文不包含 ValidateClientAuthentication 的任何数据。
请注意,这对 Chrome 和 Firefox 非常有效。如果我打开调试器并切换到 IE 9,它可以工作,但是当我关闭调试器时,它会切换到 IE 11 并停止工作。
任何想法表示赞赏!
//sample code
var data = "grant_type=password&username=john&password=mYpass10&client_id=self"
this.$http.post('/token',
data, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
.success(function(response: any) {})
.error(function(err, status) {});
【问题讨论】:
标签: javascript angularjs oauth-2.0 asp.net-web-api internet-explorer-11