Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix error 419 when previewing markdown template
  • Loading branch information
Qoraiche committed Jun 4, 2019
1 parent 26c21d0 commit a85fdba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/maileclipse.php
Expand Up @@ -56,6 +56,7 @@
*/

'middlewares' => [
'web',
//'auth',
],

Expand Down
5 changes: 3 additions & 2 deletions public/js/maileclipse-app.js
@@ -1,9 +1,10 @@
$(document).ready(function(){
/*$.ajaxSetup({

$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
});*/
});

axios.defaults.headers.common['X-CSRF-TOKEN'] = $('meta[name="csrf-token"]').attr('content');

Expand Down

0 comments on commit a85fdba

Please sign in to comment.