Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
chore: converted hardcoded whitelisted domains in GQL module to use env variables
Balu Babu1bbcd638b808
diff --git a/packages/hoppscotch-backend/src/app.module.ts b/packages/hoppscotch-backend/src/app.module.tsindex e44a2ed05..cbb9cd49c 100644--- a/packages/hoppscotch-backend/src/app.module.ts+++ b/packages/hoppscotch-backend/src/app.module.ts@@ -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',