php - Difference between two types of jQuery AJAX call with type:'GET' and type:'POST'?
one text
Solution:
There's a lot of information about GET vs POST request, as it's one of the oldest topics on the internet: https://www.w3schools.com/tags/ref_httpmethods.asp
In general, for security reasons, it's always better to use POST over the GET.
In AJAX requests difference is the same.
Use Inspector in your browser and navigate to Network tab, to validate that:
Source