From a98d94ccdc78a1f7cf9d4991cf40cb70aed97173 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 16 Oct 2017 05:22:37 -0700 Subject: [PATCH] Pass token to LDAPtest --- resources/views/settings/ldap.blade.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/views/settings/ldap.blade.php b/resources/views/settings/ldap.blade.php index 4bdc3f03b9..84f046a3c5 100644 --- a/resources/views/settings/ldap.blade.php +++ b/resources/views/settings/ldap.blade.php @@ -381,6 +381,10 @@ $.ajax({ url: '{{ route('api.settings.ldaptest') }}', type: 'GET', + headers: { + "X-Requested-With": 'XMLHttpRequest', + "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content') + }, data: {}, dataType: 'json',