From 1af860136500d331d0d61d67215549ef78f324b9 Mon Sep 17 00:00:00 2001 From: Yohan Lasorsa Date: Tue, 10 Oct 2023 07:50:35 +0000 Subject: [PATCH] chore: add logs for allowed origins --- packages/search/src/plugins/cors.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/search/src/plugins/cors.ts b/packages/search/src/plugins/cors.ts index f529e46b..6707d1bc 100644 --- a/packages/search/src/plugins/cors.ts +++ b/packages/search/src/plugins/cors.ts @@ -4,6 +4,7 @@ import cors from '@fastify/cors'; export default fp( async (fastify) => { const allowedOrigins = fastify.config.allowedOrigins.split(',').map((origin) => origin.trim()); + fastify.log.info(`CORS allowed origins: ${allowedOrigins.join(', ')}`); fastify.register(cors, { origin: allowedOrigins, });