1
I’m having trouble sending Json to my PHP Controller:
See, when sending my Login the parameters that are being sent in the request are exposed, thus being a vulnerability.
My question is whether I would have a method to send without needing an external encryption, something native or a different method to send the request without the parameters being so visible.
Edited: Follow the sending code of the request via POST
$(document).ready(function(){
$('#formlogin').submit(function(){
$.ajax({
url:"xxxController.php",
type:"post",
dataType: 'JSON',
data: {
login: $('#email').val(),
senha: $('#senha').val()
}
})
})
})
You can use HTTPS for this.
– Woss
Related: What is the best way to create a PHP login system
– Woss
Related: Information Protection when inspecting code via browser
– Woss
@Andersoncarloswoss Thank you very much for clarifying my doubt and for the Related Questions.
– PyramiDy
As @Andersoncarloswoss said, the best thing is that you use HTTPS, you had given a solution with MD5, but it would be the same.
– Leonardo Bonetti