405方法不允许在跨域WCF ajax帖子中出错。 [英] 405 method not allowed error in the WCF ajax post in cross domain.

查看:87
本文介绍了405方法不允许在跨域WCF ajax帖子中出错。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI全部,



我曾尝试制作wcf服务并使用ajax帖子调用该wcf服务但我得到了错误405方法不允许我我在不同的端口和不同的域中运行这两个应用程序。但是我得到了405方法不允许错误。

HI to all,

I had tried to make a wcf service and call that wcf service using the ajax post but i got a error 405 method not allowed i am running both application in the different port and different domain. but i got a 405 method not allowed error.

推荐答案

请试试这个

Please try this one


.support.cors = true;
.support.cors = true;


你的jquery文件中的


in your jquery files.


这篇关于405方法不允许在跨域WCF ajax帖子中出错。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆