get requests don't validate csrf tokens, so they're less secure.
Difference between logout POST and GET method
So I am aware that laravel had GET method for logout until the release of 5.3. Of course we can still use the GET method though the default scaffold creates a form with a POST method. What I want to know is what is the better way? What are the flaws of using GET and Advantages of using POST.
Also, If I write domain.com/logout, It gives me the good old MethodNotAllowed error. And We know why. That is why I wanted to change to GET method but I want to know the difference between having the POST and GET method.
anything you type in the address bar issues a get request. That's how browsers work. Who cares if you get the error if you manually type it? You'll get one if you manually type any address that is meant to respond to a post/put/patch/delete request. Use the logout form on the page that you should be displaying only to users who are logged in.
Please or to participate in this conversation.