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/"