diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js index c6d4ce7329..721bbd1e11 100644 --- a/resources/js/bootstrap.js +++ b/resources/js/bootstrap.js @@ -15,7 +15,7 @@ try { $.ajaxSetup({ headers: { - 'X-CSRF-TOKEN': document.head.querySelector('meta[name="csrf-token"]'), + 'X-CSRF-TOKEN': document.head.querySelector('meta[name="csrf-token"]').content, }, }); diff --git a/resources/js/unit3d/helper.js b/resources/js/unit3d/helper.js index 9ec5d6244a..351b5c552f 100644 --- a/resources/js/unit3d/helper.js +++ b/resources/js/unit3d/helper.js @@ -182,7 +182,7 @@ class uploadExtensionBuilder { defaults: {"language": "ENGLISH"} // defaults values for : language, resolution and year }); - + let matcher = name.value.toLowerCase(); @@ -626,7 +626,7 @@ class facetedSearchBuilder { } let localXHR = new XMLHttpRequest() localXHR = $.ajax({ - url: '/filterSettings', + url: '/torrents/filterSettings', data: { _token: this.csrf, force: force,