Skip to content

Commit

Permalink
workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewquang512 committed Dec 10, 2023
1 parent 007176b commit 13ccb82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const server = new ApolloServer({
return { prisma };
},
introspection: true,
csrfPrevention: true,
plugins: [
ApolloServerPluginLandingPageLocalDefault({ embed: true }),
...(parseInt(process.env.IS_LOGGING) ? [loggingPlugin] : []),
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export async function bootstrap(port) {
return { prisma };
},
introspection: true,
csrfPrevention: true,
plugins: [
ApolloServerPluginLandingPageLocalDefault({ embed: true }),
...(parseInt(process.env.IS_LOGGING) ? [loggingPlugin] : []),
Expand Down

0 comments on commit 13ccb82

Please sign in to comment.