Csrf-token POST 405 (Method Not Allowed) Laravel August 08, 2022 Post a Comment I am loading a modal whenever a user tries to register Blade ... Solution 1: Add url to ajax object: $.ajax({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, method : 'POST', url: '/register', success : function(data){ $("#legalModal").modal("show"); } }); Copy Share You may like these postsAutomatcially Check Checkbox Based On Database Array PhpWant To Fetch Data From Database Based On Dropdown List Selection Using PhpFile_get_contents Good Way To Handle ErrorsPhp Tag Removes Last Newline In Document Post a Comment for "Csrf-token POST 405 (Method Not Allowed) Laravel"
Post a Comment for "Csrf-token POST 405 (Method Not Allowed) Laravel"