Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
fix error 419 when previewing markdown template
Browse files Browse the repository at this point in the history
  • 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
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
*/

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

Expand Down
5 changes: 3 additions & 2 deletions public/js/maileclipse-app.js
Original file line number Diff line number Diff line change
@@ -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.