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()
}
})
})
})