Files
omnivore/packages/api/src/utils/corsConfig.ts
2024-04-23 07:57:41 -07:00

21 lines
510 B
TypeScript

import { env } from '../env'
export const corsConfig = {
credentials: true,
origin: [
'https://omnivore.app',
'https://dev.omnivore.app',
'https://demo.omnivore.app',
'https://web-prod.omnivore.app',
'https://web-dev.omnivore.app',
'https://web-demo.omnivore.app',
'http://localhost:3000',
env.dev.isLocal && 'https://studio.apollographql.com',
env.client.url,
'lsp://logseq.io',
'app://obsidian.md',
'capacitor://localhost',
'http://localhost',
],
}