Hey there!
I'm using supafetch in a Nuxt project. I have initialized Supafetch as below:
supafetch.setBaseUrl('https://staging.keyrun.app/api')
supafetch.setDefaultHeaders({
'Content-Type': 'application/x-www-form-urlencoded',
})
And then I'm making a post request:
this.$http.post('/authenticated/profiles', {
data: {
profilename: payload.sellingProfile,
keyprefix: payload.keyPrefix,
website: payload.website,
users: payload.users.join(',')
}
})
I would expect the call to have application/x-www-form-urlencoded, however, it ends up as text/plain. Any idea?