From 5c7305b6d2865f5c8e4eb442de5e6d50b3269457 Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Fri, 17 Feb 2023 00:30:29 +0000 Subject: [PATCH] expose etag --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index b0342c7..85d3b38 100644 --- a/src/index.ts +++ b/src/index.ts @@ -40,7 +40,7 @@ function hash(data: string) { return crypto.createHash("sha1").update(data).digest("hex"); } -await fastify.register(cors); +await fastify.register(cors, { exposedHeaders: ["ETag"] }); // #region request decoration & correction fastify.decorateRequest("userId", null);