Skip to content

Commit

Permalink
Merge pull request #30 from EjembiEmmanuel/main
Browse files Browse the repository at this point in the history
fix: fix graphql CORS error
  • Loading branch information
Oshioke-Salaki authored Feb 21, 2025
2 parents e0c89ce + 3f43ff6 commit 19ace2a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
9 changes: 0 additions & 9 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ import { ResolversModule } from './resolvers/resolvers.module';
driver: ApolloDriver,
autoSchemaFile: true,
resolvers: { JSON: GraphQLJSON },
csrfPrevention: {
requestHeaders: [
'Accept',
'Authorization',
'Content-Type',
'X-Requested-With',
'apollo-require-preflight',
],
},
}),
PrismaModule,
SharedIndexerModule,
Expand Down
7 changes: 0 additions & 7 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ async function bootstrap() {
app.enableCors({
origin: '*',
credentials: true,
allowedHeaders: [
'Accept',
'Authorization',
'Content-Type',
'X-Requested-With',
'apollo-require-preflight',
],
methods: ['GET', 'PUT', 'POST', 'DELETE', 'OPTIONS'],
});

Expand Down

0 comments on commit 19ace2a

Please sign in to comment.