diff --git a/src/fastify/fastifyApp.ts b/src/fastify/fastifyApp.ts index 5c5e7f22..5c25f160 100644 --- a/src/fastify/fastifyApp.ts +++ b/src/fastify/fastifyApp.ts @@ -104,7 +104,7 @@ function listen(port: number): void { async function loadPlugins(config: FastifyConfig) { await fastifyInstance.register(import('@fastify/cors'), { - origin: new URL(process.env.UI_URL).origin, + origin: [new URL(process.env.UI_URL).origin, 'accounts.google.com'], methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'], // Allow these HTTP methods allowedHeaders: ['Content-Type', 'Authorization'], // Allow these headers credentials: true,