chore: converted hardcoded whitelisted domains in GQL module to use env variables
This commit is contained in:
parent
fe73750d66
commit
1bbcd638b8
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ import { UserHistoryModule } from './user-history/user-history.module';
|
|||
imports: [
|
||||
GraphQLModule.forRoot<ApolloDriverConfig>({
|
||||
cors: process.env.PRODUCTION !== 'true' && {
|
||||
origin: ['http://localhost:3170', 'http://localhost:3000'],
|
||||
origin: process.env.WHITELISTED_ORIGINS.split(','),
|
||||
credentials: true,
|
||||
},
|
||||
playground: process.env.PRODUCTION !== 'true',
|
||||
|
|
|
|||
Loading…
Reference in a new issue