Auth-module: How to set "Content-Type" header?

Created on 19 Jan 2018  路  2Comments  路  Source: nuxt-community/auth-module

how to set "Content-Type" header for login?
ex : 'Content-Type': 'application/x-www-form-urlencoded'

This feature request is available on Nuxt.js community (#c31)
implemented

Most helpful comment

@kanji-keraliya @FayneVALSK @Almusamim

This was implemented as of v4.0.0-rc0, you can now use the endpoints configuration to do it, each endpoints are an axios request config, so you can do it like this :

endpoints: {
   login: { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } }
}

馃帄

All 2 comments

@FayneVALSK Please use reactions instead of +1 replies if you want to give more value to this issue 馃槃
image

@kanji-keraliya @FayneVALSK @Almusamim

This was implemented as of v4.0.0-rc0, you can now use the endpoints configuration to do it, each endpoints are an axios request config, so you can do it like this :

endpoints: {
   login: { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } }
}

馃帄

Was this page helpful?
0 / 5 - 0 ratings