diff options
author | Marvin Borner | 2018-07-03 21:45:17 +0200 |
---|---|---|
committer | Marvin Borner | 2018-07-03 21:45:17 +0200 |
commit | f9c4bd9b5af8c3285842515b5659ef03f21a66d2 (patch) | |
tree | cf634bbcb2dfcdc453939c6fcef3d1f8fca68d52 /resources/assets/js/setup.js | |
parent | bcffb8d7c6671fe0ddef7800d61e1deca93fabdd (diff) |
Ajax instead of form for avatar post.
Diffstat (limited to 'resources/assets/js/setup.js')
-rw-r--r-- | resources/assets/js/setup.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/resources/assets/js/setup.js b/resources/assets/js/setup.js new file mode 100644 index 0000000..880bf91 --- /dev/null +++ b/resources/assets/js/setup.js @@ -0,0 +1,5 @@ +$.ajaxSetup({ + headers: { + 'X-CSRF-Token': $('input[name="_token"]').val() + } +});
\ No newline at end of file |