diff --git a/src/api.ts b/src/api.ts index f391d6f..d8a33ce 100644 --- a/src/api.ts +++ b/src/api.ts @@ -25,7 +25,7 @@ async function request( init.headers.set("X-CSRFToken", csrfToken); } if (authToken != undefined) { - init.headers.set("Authentication", authToken); + init.headers.set("Authorization", `Token ${authToken}`); } init.headers.set("Accept", "application/json"); init.headers.set("Content-Type", "application/json"); diff --git a/src/components/InlineEditor.vue b/src/components/InlineEditor.vue index a2a5eab..f3d3faa 100644 --- a/src/components/InlineEditor.vue +++ b/src/components/InlineEditor.vue @@ -1,8 +1,8 @@