我正在使用一个连接到woocommerce(wordpress)rest api的离子3应用程序,所有GET请求都正常但只有POST请求不起作用:
woocommerce模块的初始化代码:
this.WooCommerce = WC({
url: "http://*******.com",
consumerKey: "ck_*********************",
consumerSecret: "cs_***********************",
wpAPI: true,
version: 'wc/v2'
});
并且发布电话是:
this.WooCommerce.postAsync("customers", datac).then( (data) => .....
我的问题是服务器上是否有配置或其他任何东西来解决此问题,请记住,请求工作正常吗?