From e7cb2fb63143c9e8f85091ce70196d48d51ca19a Mon Sep 17 00:00:00 2001 From: Inian Parameshwaran Date: Thu, 18 Mar 2021 10:41:07 +0530 Subject: [PATCH] fix: disable cors --- src/app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.ts b/src/app.ts index 382d039a..ff369ae5 100644 --- a/src/app.ts +++ b/src/app.ts @@ -23,8 +23,8 @@ const build = (opts: buildOpts = {}): FastifyInstance => { }, }) - // @todo - restrict origin here - app.register(fastifyCors) + // kong should take care of cors + // app.register(fastifyCors) if (opts.exposeDocs) { app.register(fastifySwagger, {