Csrf-token POST 405 (Method Not Allowed) Laravel July 14, 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 postsWrapping A Table Row In A Element (hyperlink) In Html5Angularjs Ui-router + State Help NeededAuto-save All Inputs Value To Localstorage And Restore Them On Page ReloadJquery Ajax Dropdown Repeatedly Reset Post a Comment for "Csrf-token POST 405 (Method Not Allowed) Laravel"
Post a Comment for "Csrf-token POST 405 (Method Not Allowed) Laravel"