From 05bb9745be6cab931f7948d8f36527dc64345910 Mon Sep 17 00:00:00 2001 From: Naramsim Date: Thu, 23 Apr 2026 09:16:44 +0200 Subject: [PATCH] feat: expose headers --- functions_v1/src/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/functions_v1/src/index.js b/functions_v1/src/index.js index 0eda79b..6fc40bd 100644 --- a/functions_v1/src/index.js +++ b/functions_v1/src/index.js @@ -131,7 +131,11 @@ const gotConfig = { } api.use(compression()) -api.use(cors()) +api.use(cors({ + origin: '*', + methods: ['GET', 'HEAD'], + exposedHeaders: ['X-PokeAPI-Hash', 'X-PokeAPI-Deploy-Date'], +})) api.get([ "/api/v2/"