Unsupported Media Type in postman

后端 未结 3 589
暖寄归人
暖寄归人 2021-01-03 18:17

I am implementing spring security with oauth2 and jwt. the below is my login function

function doLogin(loginData) {

    $.ajax({
        url :  back+\"/auth         


        
3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-03 18:50

    I also got this error .I was using Text inside body after changing to XML(text/xml) , got result as expected.

    • If your request is XML Request use XML(text/xml).

    • If your request is JSON Request use JSON(application/json)

提交回复
热议问题