Just plain jQuery using ajax (so I can get the json content type). The key is to set the authorization header before hand:
$.ajaxSetup({
headers: { 'Authorization': 'JWT {{token}}'
});
is what we do.
Just plain jQuery using ajax (so I can get the json content type). The key is to set the authorization header before hand:
$.ajaxSetup({
headers: { 'Authorization': 'JWT {{token}}'
});
is what we do.