Skip to content

Commit

Permalink
Send CSRF token when changing card
Browse files Browse the repository at this point in the history
  • Loading branch information
megastary authored Mar 20, 2024
1 parent ab1a409 commit 7fe1b70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions public/javascripts/admin_users.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const cardEvents = ["paste", "keyup"];
user: this.dataset.user,
name: this.dataset.property,
value: sanitizedValue,
_csrf: document.getElementsByName("_csrf")[0].value,
}),
});
if (response.status !== 200) {
Expand Down

0 comments on commit 7fe1b70

Please sign in to comment.