2017-07-29 57 views

回答

0

与CORS无关。

你检查你的请求的ContentType的是application/x-www-form-urlencoded在体内传递的数据为:

grant_type=password&username=bob&password=password123

+0

我的ContentType,并已通过你和grant_type字符串描述的设置相同的设置,但我会把身体放入标题中。 PS:你能简单解释为什么CORS与这种情况无关吗? –

+1

CORS适用于浏览器执行跨域请求。请阅读维基页面https://en.wikipedia.org/wiki/Cross-origin_resource_sharing –

相关问题