Ajax / Json POST Treatment

1

I'm having trouble sending Json to my Controller in PHP:

  

See,insendingmyLogintheparametersthatarebeingsentintherequestareexposed,thusbeingavulnerability.

Myquestioniswhetheryouwouldhaveamethodofsendingwithoutrequiringanexternalcryptography,somethingnativeoradifferentmethodtosendtherequestwithouttheparametersbeingsovisible.

Edited:FollowthePOSTRequisitionSendingCode

$(document).ready(function(){$('#formlogin').submit(function(){$.ajax({url:"xxxController.php",            
                type:"post",
                dataType: 'JSON',
                data: {
                    login: $('#email').val(),
                    senha: $('#senha').val()
                }
             })
         })   
     })
    
asked by anonymous 31.07.2018 / 13:41

0 answers