jquery - Which is he most secure method of passing values to Ajax -
what secure method of passing values through jquery ajax function?
i serialising whole form, secure or there better ways of doing it?
this ajax call using
function login() { jquery.ajax({ type: "post", url: "ajax/index_login.php", data: $('#login').serialize(), cache: false, success: function(response) { if(response == 'valid'){ document.location.href = '/main_menu.php'; }else{ $('#index_error').html('incorrect username or password'); } } }); }
i want make sure values can't intercepted in way via url or via browser passed server.
there isn't can secure front-end form. can add kinds of validation, users can disable javascript, modify form attributes in dom, etc. should validate data on server, , make sure looks reasonable before serious it.
there's issue of network security, greg mentioned in comment above, don't know that.
edit: if don't want people snooping on request in-flight, sure serve site on https.
Comments
Post a Comment