From 52862156b9670b790fab97fdc1eb92572381a929 Mon Sep 17 00:00:00 2001 From: Marco <35533749+marcopeocchi@users.noreply.github.com> Date: Fri, 22 Mar 2024 14:15:50 +0100 Subject: [PATCH] updated VersionIndicator.tsx --- frontend/src/components/VersionIndicator.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/VersionIndicator.tsx b/frontend/src/components/VersionIndicator.tsx index 0786e1d..f9f6a24 100644 --- a/frontend/src/components/VersionIndicator.tsx +++ b/frontend/src/components/VersionIndicator.tsx @@ -11,7 +11,11 @@ const VersionIndicator: React.FC = () => { const { pushMessage } = useToast() const fetchVersion = async () => { - const res = await fetch(`${serverAddr}/api/v1/version`) + const res = await fetch(`${serverAddr}/api/v1/version`, { + headers: { + 'X-Authentication': localStorage.getItem('token') ?? '' + } + }) if (!res.ok) { return pushMessage(await res.text(), 'error')