Csrf-token POST 405 (Method Not Allowed) Laravel December 01, 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 postsHow To Type Mixing Of Caps And Small Letter In Same Textbox, If I Set Default Uppercase In Style?Php Error Message On Invalid InputUpload File Inside A Form HtmlMake Php Code Into Css File? Post a Comment for "Csrf-token POST 405 (Method Not Allowed) Laravel"
Post a Comment for "Csrf-token POST 405 (Method Not Allowed) Laravel"