From c0b37593deb7ed2a794d9ffa1b71853cff21923b Mon Sep 17 00:00:00 2001 From: Koen Vendrik Date: Tue, 16 Jun 2020 11:12:01 -0400 Subject: [PATCH] remove cookie pass through --- packages/react-server/src/render/render.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/react-server/src/render/render.tsx b/packages/react-server/src/render/render.tsx index b63033ab1a..9784c637f4 100644 --- a/packages/react-server/src/render/render.tsx +++ b/packages/react-server/src/render/render.tsx @@ -79,7 +79,6 @@ export function createRender(render: RenderFunction, options: Options = {}) { const networkManager = new NetworkManager({ headers: ctx.headers, - cookies: ctx.request.headers.cookie || '', }); const htmlManager = new HtmlManager(); const asyncAssetManager = new AsyncAssetManager(); @@ -142,9 +141,8 @@ export function createRender(render: RenderFunction, options: Options = {}) { ctx.set(Header.ContentType, 'text/html'); ctx.body = response; } catch (error) { - const errorMessage = `React server-side rendering error:\n${ - error.stack || error.message - }`; + const errorMessage = `React server-side rendering error:\n${error.stack || + error.message}`; logger.log(errorMessage); ctx.status = StatusCode.InternalServerError;