Skip to content

Commit

Permalink
Add withCredentials to mark request
Browse files Browse the repository at this point in the history
  • Loading branch information
Glukoosi committed Oct 17, 2023
1 parent 3b4c8b0 commit 789f1aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Donations.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ onMounted(()=> {
const markDonation = (id, readValue) => {
axios.patch(`${url.value}/donations/${id}`, {read: readValue})
axios.patch(`${url.value}/donations/${id}`, {read: readValue}, { withCredentials: true })
.then(() => {
let obj = donations.value.find(x => x.id === id);
let index = donations.value.indexOf(obj);
Expand Down

0 comments on commit 789f1aa

Please sign in to comment.