reqwest ({
) url: "http://123.456.789/api/",
type: "json",
headers: Cookies.get("token") ? {"Authorization": "Token " + Cookies.get("token")} : {},
success: function (resp) {
console.log(resp);
},
});
reqwesttokenaxiosaxios