Skip to content
This repository has been archived by the owner on Nov 23, 2022. It is now read-only.

Commit

Permalink
fix(relay): add query depth limit (CWE-400)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x77dev committed Mar 26, 2022
1 parent d179642 commit 0271aa5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/relay/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const listen = async ({
namespace: req.headers['x-dstack-namespace'] as string | undefined
}
},
queryDepth: 15,
path: '/graphql'
})

Expand Down

0 comments on commit 0271aa5

Please sign in to comment.