Skip to content

Commit

Permalink
Add CSRF token to DOI service calls
Browse files Browse the repository at this point in the history
  • Loading branch information
markpatton committed Jun 10, 2024
1 parent ffeb60e commit 6565f1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/services/doi.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default class DoiService extends Service {
headers: {
Accept: 'application/json; charset=utf-8',
withCredentials: 'include',
'X-XSRF-TOKEN': document.cookie.match(/XSRF-TOKEN\=([^;]*)/)['1'],
},
});

Expand Down

0 comments on commit 6565f1b

Please sign in to comment.