I am sending a post request with axios. However, when I check the browser console, I see that the request header is actually content-type: multipart/form-data. How can I enforce application/x-www-form-urlencoded? Or does it even matter?
let data = new FormData(); data.append('grant_type', 'authorization_code'); // ... removed for conciseness return axios.post(`${AUTH_URL}/token`, data, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } }