update:cors
This commit is contained in:
@@ -15,6 +15,7 @@ const isProd = process.env.NODE_ENV === 'production'
|
||||
const app = Fastify({ logger: true })
|
||||
|
||||
await app.register(cors, {
|
||||
methods: ['GET', 'POST', 'PATCH', 'DELETE', 'OPTIONS'],
|
||||
origin: process.env.FRONTEND_URL ?? 'http://localhost:5173',
|
||||
credentials: true,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user