Csrf-token POST 405 (Method Not Allowed) Laravel September 09, 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 Save Uploaded Image Names In Mysql DatabaseHtml Agility To Extract Php TagsHow To Fetch The Get/post Elements In A Form Without Knowing The Name Of The Controls Inside The FormJavascript Onload Function Alternative Post a Comment for "Csrf-token POST 405 (Method Not Allowed) Laravel"
Post a Comment for "Csrf-token POST 405 (Method Not Allowed) Laravel"