Skip to content

Commit

Permalink
Add accounts.google.com to cors
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcampagnolitg committed Oct 30, 2024
1 parent f398cf0 commit f94ffe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fastify/fastifyApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f94ffe7

Please sign in to comment.