Files
omnivore/packages/api/src/utils/corsConfig.ts
2023-11-08 18:16:32 +08:00

19 lines
457 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',
],
}