From d5081fde197dfdec491be438d06873aae809168f Mon Sep 17 00:00:00 2001 From: Hendrik Krebs <84068456+hendrik-krebs@users.noreply.github.com> Date: Wed, 3 Sep 2025 01:21:01 +0200 Subject: [PATCH] docs: hint to use credentials: 'omit' for authenticated requests (#4369) Co-authored-by: Hendrik Krebs --- docs/content/docs/integrations/expo.mdx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/content/docs/integrations/expo.mdx b/docs/content/docs/integrations/expo.mdx index 3649695916..14ade52c86 100644 --- a/docs/content/docs/integrations/expo.mdx +++ b/docs/content/docs/integrations/expo.mdx @@ -362,7 +362,11 @@ const makeAuthenticatedRequest = async () => { const headers = { "Cookie": cookies, // [!code highlight] }; - const response = await fetch("http://localhost:8081/api/secure-endpoint", { headers }); + const response = await fetch("http://localhost:8081/api/secure-endpoint", { + headers, + // 'include' can interfere with the cookies we just set manually in the headers + credentials: "omit" // [!code highlight] + }); const data = await response.json(); return data; };