Skip to content

Commit

Permalink
Remove redundant cors middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmwang committed Feb 21, 2023
1 parent f4957f6 commit be61d75
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/bootstrap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default async (config: Config) => {

app.use(
"/graphql",
cors<cors.CorsRequest>(),
json(),
expressMiddleware(server, {
context: async ({ req }) => ({ token: req.headers.token }),
Expand Down

0 comments on commit be61d75

Please sign in to comment.