From a2d25a9f567b1484ff9e60adb89a9cb0ce0bfeaa Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Sat, 5 Jul 2025 19:43:18 -0700 Subject: [PATCH] fix: send back origin? --- server/src/hooks/cors.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/hooks/cors.ts b/server/src/hooks/cors.ts index 8fc6f39..6e623f7 100644 --- a/server/src/hooks/cors.ts +++ b/server/src/hooks/cors.ts @@ -34,8 +34,8 @@ export const corsHook: onRequestHookHandler = async(request, response) => { if (!isValidOrigin(request.headers.origin)) { return await response.status(403).send({ error: - // eslint-disable-next-line stylistic/max-len -- This is a long error message. - "This route is only accessible from our dashboard at https://hikari.nhcarrigan.com.", + + `This route is only accessible from our dashboard at https://hikari.nhcarrigan.com - your origin of ${String(request.headers.origin)} is invalid..`, }); } return undefined;