<p dir="auto">I've set <code class="notranslate">axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';</code> and using the same instance doesn't affect at any request at all. It is very annoying because every POST request to API is useless.</p>
<p dir="auto">In addition, v: 0.12.0, no interceptor, pure default + post request.</p>
<h4 dir="auto">Describe the issue</h4>
<p dir="auto">This might be duplicated question, but I have tried all possible research on google and blogs, StackOverflow to get a solution to fix it, but no luck so if you already know the answer please help me.</p>
<p dir="auto">I am trying to send an array of objects to Axios post request, but the payload empty array even if I have the data in array as I checked with console.log</p>
<h4 dir="auto">Example Code</h4>
<p dir="auto">Code snippet to illustrate your question</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="axios.post(&quot;/api/videos&quot;, {
	ytVideosList,
	data: {
		customFunction: &quot;AddVideoList&quot;
	}
})"><pre class="notranslate"><span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">post</span><span class="pl-kos">(</span><span class="pl-s">"/api/videos"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
	ytVideosList<span class="pl-kos">,</span>
	<span class="pl-c1">data</span>: <span class="pl-kos">{</span>
		<span class="pl-c1">customFunction</span>: <span class="pl-s">"AddVideoList"</span>
	<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<h4 dir="auto">Expected behavior, if applicable</h4>
<p dir="auto">where ytVideoList is [{json-obj1},{json-obj2}, .....] etc which is empty [] at payload side, so i am not able to insert data in my database table. I hope everything is clear if you know the answer please respond as soon as possible.</p>
<h4 dir="auto">Environment</h4>
<ul dir="auto">
<li>Axios Version 0.24.0</li>
<li>Adapter HTTP</li>
<li>Browser Chrome</li>
<li>Browser Version 22+</li>
<li>Node.js Version 13+</li>
<li>React 16.7+</li>
</ul>
<h4 dir="auto">Additional context/Screenshots</h4>
<p dir="auto">It's general simple data sending issue so no need to add screenshot i think so</p>