mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Allow apollo sandbox access in local env only
This commit is contained in:
parent
917396c976
commit
9872355056
1 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,8 @@
|
|||
import { env } from '../env'
|
||||
|
||||
export const corsConfig = {
|
||||
credentials: true,
|
||||
// allow https://studio.apollographql.com for local env
|
||||
origin: [
|
||||
'https://omnivore.app',
|
||||
'https://dev.omnivore.app',
|
||||
|
|
@ -9,6 +12,6 @@ export const corsConfig = {
|
|||
'https://web-demo.omnivore.app',
|
||||
'http://localhost:3000',
|
||||
'lsp://logseq.io',
|
||||
'https://studio.apollographql.com',
|
||||
env.dev.isLocal && 'https://studio.apollographql.com',
|
||||
],
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue