Here's my axios code
axios.post('/paktay', {
headers: {
'X-Requested-With': true
}
}).then((res)=>{
console.log(res.data);
});
}
Hey @kingleuther! 馃憢
Remove the header X-Requested-With, this is automatically set by axios and sound't be true.
Code https://github.com/poppinss/node-req/blob/develop/index.js#L366
You won't have to set X-Requested-With. If the request is from browser using axios, then it will set it for you.
Also I recommend using forum or the discord channel for confusions.
@thetutlage noted I will retry that.
Closing since not actionable
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Hey @kingleuther! 馃憢
Remove the header
X-Requested-With, this is automatically set byaxiosand sound't betrue.Code https://github.com/poppinss/node-req/blob/develop/index.js#L366