mirror of
https://github.com/lukaszraczylo/graphql-monitoring-proxy.git
synced 2026-10-20 06:28:13 +00:00
Blocking introspection queries.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user