From f9c4bd9b5af8c3285842515b5659ef03f21a66d2 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 3 Jul 2018 21:45:17 +0200 Subject: Ajax instead of form for avatar post. --- resources/assets/js/setup.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 resources/assets/js/setup.js (limited to 'resources/assets/js/setup.js') 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 -- cgit v1.2.3