2017-07-29 24 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 –

相關問題