Skip to content

Commit

Permalink
fix: Torrent filter settings saving, CSRF value for jquery ajax
Browse files Browse the repository at this point in the history
  • Loading branch information
Oha-you committed May 12, 2021
1 parent e9c234b commit 6684461
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
});

Expand Down
4 changes: 2 additions & 2 deletions resources/js/unit3d/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class uploadExtensionBuilder {
defaults: {"language": "ENGLISH"} // defaults values for : language, resolution and year
});



let matcher = name.value.toLowerCase();

Expand Down Expand Up @@ -626,7 +626,7 @@ class facetedSearchBuilder {
}
let localXHR = new XMLHttpRequest()
localXHR = $.ajax({
url: '/filterSettings',
url: '/torrents/filterSettings',
data: {
_token: this.csrf,
force: force,
Expand Down

0 comments on commit 6684461

Please sign in to comment.