Skip to content

Commit 08ff5a7

Browse files
committed
Fix: bug
1 parent dd54d49 commit 08ff5a7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ import { ApolloDriver, ApolloDriverConfig } from '@nestjs/apollo';
6666
from: '"soap" <[email protected]>',
6767
},
6868
template: {
69-
dir: `${__dirname}/common/email/template`,
69+
dir: `${process.cwd()}/common/email/template`,
7070
adapter: new MjmlAdapter(), // or new PugAdapter()
7171
options: {
7272
strict: true,

src/shared/graphql/graphql.service.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ export class GraphqlService implements GqlOptionsFactory {
3434
// plugins: [ApolloServerPluginLandingPageLocalDefault()],
3535
introspection: true,
3636
playground: true,
37-
cors: false,
37+
cors: {
38+
origin: '*',
39+
credentials: true,
40+
},
3841
context: async ({ req, res, connection }) => {
3942
if (connection) {
4043
return {

0 commit comments

Comments
 (0)