mirror of
https://github.com/lukaszraczylo/graphql-monitoring-proxy.git
synced 2026-06-05 23:03:48 +00:00
Fixes the issue with case comparison.
This commit is contained in:
+2
-5
@@ -28,11 +28,11 @@ var (
|
||||
|
||||
func prepareQueriesAndExemptions() {
|
||||
for _, q := range cfg.Security.IntrospectionAllowed {
|
||||
introspectionAllowedQueries[strings.ToLower(q)] = struct{}{}
|
||||
introspectionAllowedQueries[strings.ToLower(q)] = struct{}{}
|
||||
}
|
||||
|
||||
for _, u := range cfg.Server.AllowURLs {
|
||||
allowedUrls[u] = struct{}{}
|
||||
allowedUrls[u] = struct{}{}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -184,7 +184,6 @@ func checkSelections(c *fiber.Ctx, selections []ast.Selection) bool {
|
||||
return true
|
||||
}
|
||||
}
|
||||
// Check nested selections even if current field is allowed
|
||||
if sel.SelectionSet != nil {
|
||||
if checkSelections(c, sel.GetSelectionSet().Selections) {
|
||||
return true
|
||||
@@ -196,8 +195,6 @@ func checkSelections(c *fiber.Ctx, selections []ast.Selection) bool {
|
||||
return true
|
||||
}
|
||||
}
|
||||
case *ast.FragmentSpread:
|
||||
// If we need to handle fragment spreads, additional logic would go here
|
||||
}
|
||||
}
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user