I have created a project, it is an ASP.NET project and one of its Services 1. The remote server is calling this web service with a subdomain ( myservice.test.com/Service1.asmx ) and jquery ajax method from an asp.net application. This application is on the same remote server and is hosted like a subdomain ( admin.test.com ) when "call to admin.test.com/Default.aspx" (this page Uses the web service) It is giving an error for this error, seen with Chrome console and it says: * (Access-Control-Permission is not permitted by Genesis). * 4444 This means that your place is about your cross-side restrictions Consider using JSONP by the browser if you can try or get this problem, or if you can use the maximum number of updated browsers by using your headers on your webserver, then ensure that can do. Take a look at this
ge T_CAT_ALL: function (user id, callback, callback_ar) {try $ $. AZ ({type: "POST", url: myservice.test.com/Service1.asmx + "/ GET_CAT_ALL", Data: "{userId:" + UserId + "}", Content Type: "Application / Jason; Charset = UTF-8 ", datatype:" Jason ", success: function (msg) {if (msg.d ==" 0 "|| msg.d. length == 0 || msg.d == faucet) {if ( Callback == 'type of function') {callback (null);}} else if (msg.d & lt; = 0) {if (callof_err = typeof 'function') {callback_err (msgd, msg, 'gET_CAT_ALL ');}} Other {var _data = eval ("(" + msg.d + ")"); if (callof_err ==' type of function '; & Amp; _data [0]! = Null & amp; amp; ; Amp; Type _data [0] .ErrorCode! = 'Undef Ined') {callback_err (_data, msg, 'GET_CAT_ALL');} and if (type of callback == 'f Nkshn ') {callback (_data);}}}, error: function (msg) {if (callback_err == type' function ') {callback_err (-1, msg,' GET_CAT_ALL ');}}}); } Grip (error) {if (callback_err == 'type of function') {callback_err (-2, err, 'GET_CAT_ALL'); }}}},
Comments
Post a Comment