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; };