From fa1d4e511157e8b51ea664dd58739005cfae6f2c Mon Sep 17 00:00:00 2001 From: Federico Ruggi <1081051+ruggi@users.noreply.github.com> Date: Wed, 29 May 2024 20:20:02 +0200 Subject: [PATCH] log headers --- utopia-remix/app/util/assets.server.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utopia-remix/app/util/assets.server.ts b/utopia-remix/app/util/assets.server.ts index 495dd68ff233..544fea77623f 100644 --- a/utopia-remix/app/util/assets.server.ts +++ b/utopia-remix/app/util/assets.server.ts @@ -35,9 +35,11 @@ export async function getProxyAssetPath(req: Request): Promise { } export function getProjectIdFromReferer(req: Request): string | null { - const referer = req.headers.get('referer') + const referer = req.headers.get('Referer') + console.warn( + `referer: no referer in the request headers for ${req.url} ${Array.from(req.headers.keys())}`, + ) if (referer == null) { - console.warn(`referer: no referer in the request headers`) return null }