Ajax/Json POST treatment

Asked

Viewed 90 times

1

I’m having trouble sending Json to my PHP Controller:

Parametros Json

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.