Problem with Ajax URL

0

Every time I try to call the method of my controller it appears a url different from the one I'm putting in the AJAX url, why this?

    
asked by anonymous 14.02.2018 / 02:48

1 answer

0

You are using the GET method to send data. This method transmits all information through the URL, that is, when you are sending your information through the URL, which can be potentially dangerous. Usually the GET method is used to request data for its back end.

A request using GET will leave the url more or less like this

http://www.exemplo.com?var1=alguma_coisa&var2=outra_coisa

If you want to carry your data with a higher level of security you should use the POST method. If you want to understand more about these methods you can read here

    
14.02.2018 / 03:32