magento2 当控制器下的方法实现了HttpPostActionInterface 前台发起的post的请求始终无法路由,解决方案: 添加Content-Type:application/json,X-Requested-With:XMLHttpRequest到请求头即可 详细查看https://magento.stackexchange.com/questions/253585/magento2-3-controller-wont-handle-post-method