From 686d24084f204c4d45caa7fc7a0f1929b7548cd9 Mon Sep 17 00:00:00 2001 From: Rafi Arrafif Date: Tue, 10 Feb 2026 23:37:03 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20forward=20browser=20cooki?= =?UTF-8?q?es=20to=20backend=20via=20nextjs=20proxy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/helpers/backendFetch.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/shared/helpers/backendFetch.ts b/shared/helpers/backendFetch.ts index 7416c03..f41c5d2 100644 --- a/shared/helpers/backendFetch.ts +++ b/shared/helpers/backendFetch.ts @@ -30,6 +30,7 @@ export const backendFetch = async (path: string, options: RequestInit = {}) => { "Content-Type": "application/json", "x-client-info": JSON.stringify(clientInfo), Authorization: `Bearer ${process.env.BACKEND_API_KEY}`, + cookie: (await headers()).get("cookie") || "", ...options.headers, }, cache: "default",