Blocking introspection queries.

This commit is contained in:
2023-10-08 18:07:24 +01:00
parent eee6016b5a
commit 3ac7c115aa
8 changed files with 62 additions and 4 deletions
+5 -1
View File
@@ -50,7 +50,11 @@ func processGraphQLRequest(c *fiber.Ctx) error {
if authorization != nil && len(cfg.Client.JWTUserClaimPath) > 0 {
extracted_user_id = extractClaimsFromJWTHeader(string(authorization))
}
opType, opName, cache_from_query := parseGraphQLQuery(c)
opType, opName, cache_from_query, should_block := parseGraphQLQuery(c)
if should_block {
return nil
}
was_cached := false