Content-Type, Accept
попробуй добавить application/json
Добавил:
$.ajax({
type: 'GET',
url: USER,
dataType: "json",
contentType: "application/json",
headers: {
'Authorization': 'Bearer ' + BEARER,
},
})
Ошибка поменялась на:
{"readyState":4,"responseText":"{\"message\":\"Unauthenticated.\"}","responseJSON":{"message":"Unauthenticated."},"status":401,"statusText":"Unauthorized"}