Magento 2 - How to enable POST request on Controller without X-Requested-With: XMLHttpRequest
By Default, if you want to request thru post method, you need to need to decide this on Header Request :
X-Requested-With: XMLHttpRequest
Problem here is, what if we won’t include that header?
1. Use the classes
Use this classes by putting on top o...
fiko.me1 min read