Closed Yaft closed 4 years ago
Sorry, my fail. I read the documentation again and understood
const $api = $http.create({
headers: {
DateFormat: 'unix',
Accept: 'application/json',
},
});
Correct initialization does not bind to _defaults variable
Version
v0.5.12
Where?
https://github.com/nuxt/http/blob/0f274df66ea5a81e4d7e4cf709bfa7d109a5d730/lib/plugin.js#L57
Resolve example: