How to hide / protect WCF URL in JQuery code -


i using jquery interact wcf rest service. somehow hide or secure url of service..but have no idea how this, help?

function getmyuser() {         var query = { "plastname": null };         query.plastname = "m";         var label = document.getelementbyid("idgetusersbylastname");          $(document).ready(function () {             $.ajax({                 type: "post",                 url: "//the url want hide",                 data: json.stringify(query),                 contenttype: "application/json; charset=utf-8",                 datatype: "text",                 success: function (data) {                      var zx = 5652;                     label.innerhtml = data;                 },                 error: function (xmlhttprequest, textstatus, errorthrown) {                     var zx = 5652;                     msapp.execunsafelocalfunction(function () {                         label.innerhtml = xmlhttprequest.responsetext;                     });                 }             });         });       }; 

i believe going server check url work no idea how implement it.

you can't hide it, , knowing that, should make sure appropriate level of authentication need in order prevent tampering/abuse - whether rate throttling or authentication.

you can't count on not knowing being enough security - find it, , try break it.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -