Files
omnivore/packages/api/src/utils/corsConfig.ts
2024-07-10 20:00:39 +05:30

23 lines
581 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',
'https://plugins.amplenote.com',
'amplenote-handler://bundle',
'capacitor://localhost',
'http://localhost',
],
}