我有一段ajax代码,它调用了WCF服务。当我通过本地主机调用时,它会显示“Failed to load resource:http://servicelink?order%5B0%5D%5BCoupanId%5D=1&order%5B0%5D%5BDiscount%5D=1&order%5B0%5D%5BEmailAddress%5D=em.com&order%5B0%5D%5ailtemName%5D=Sgfa+wraps&order%5B0%5D%5BItem_Id%5D=1&order%5B0%5D%5BQty%5D=1&order%5B0%5D%5Bprice%5D=5.5 the server responded with a status of 405 (Method Not Allowed)
”,但是它仍然将所有参数传递过去。当我在Postman中使用相同的链接并将其更改为POST时,它正常工作。我已经将其更改为POST,但在本地主机上仍然存在问题。