Merge pull request #7818 from MrBoba/fix-unauthorized-ajax

fix: [internal] withCredentials property was added into $.ajaxSetup()…
pull/7840/head
Andras Iklody 2021-10-12 15:01:17 +02:00 committed by GitHub
commit f44b125ab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -5379,3 +5379,13 @@ $('td.rotate').hover(function() {
var t = parseInt($(this).index()) + 1;
$table.find('td:nth-child(' + t + ')').css('background-color', '');
});
$.ajaxSetup({
xhrFields: {
withCredentials: true
},
headers: {
'X-Requested-With': 'XMLHttpRequest',
},
});