From 8a7bc6f75b26725cbdb37d5d210a4f81c78387e5 Mon Sep 17 00:00:00 2001 From: Mark Patton Date: Mon, 10 Jun 2024 10:25:01 -0400 Subject: [PATCH] Add CSRF token to DOI service calls --- app/services/doi.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/doi.js b/app/services/doi.js index 163cf7d9..75a0ce00 100644 --- a/app/services/doi.js +++ b/app/services/doi.js @@ -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'], }, });