Skip to content

Commit

Permalink
chore: securing apollo server cache against DDoS attacks (specklesyst…
Browse files Browse the repository at this point in the history
…ems#1099)

* chore: securing apollo server cache against DDoS attacks

* enabling csrf protection
  • Loading branch information
fabis94 authored Oct 11, 2022
1 parent b23e2fc commit 718e0d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/server/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ export async function buildApolloServer(
: [])
],
introspection: true,
cache: 'bounded',
persistedQueries: false,
csrfPrevention: true,
formatError: buildErrorFormatter(debug),
debug,
...optionOverrides
Expand Down

0 comments on commit 718e0d6

Please sign in to comment.