diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-09-03 15:33:13 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2018-11-21 19:24:36 +0100 |
commit | 23c0fae36fb8159bcf8b95bae98555201146457e (patch) | |
tree | 6a169114a47391adb1da701f630bb27d73e925d2 /resources/assets/js | |
parent | 8236989be066c51c5f57884bcc42dbc387794651 (diff) |
Added csrf middleware
Diffstat (limited to 'resources/assets/js')
-rw-r--r-- | resources/assets/js/vendor.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/resources/assets/js/vendor.js b/resources/assets/js/vendor.js index dd6b66b3..f9cddad6 100644 --- a/resources/assets/js/vendor.js +++ b/resources/assets/js/vendor.js @@ -14,3 +14,7 @@ require('./moment-countdown'); $(function () { moment.locale($('html').attr('lang')); }); + +$.ajaxSetup({ + headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')} +}); |