mirror of
https://github.com/lukaszraczylo/graphql-monitoring-proxy.git
synced 2026-10-12 05:32:36 +00:00
Return 403 on blocked queries.
This commit is contained in:
@@ -111,6 +111,7 @@ func processGraphQLRequest(c *fiber.Ctx) error {
|
|||||||
|
|
||||||
opType, opName, cacheFromQuery, cache_time, shouldBlock, should_ignore := parseGraphQLQuery(c)
|
opType, opName, cacheFromQuery, cache_time, shouldBlock, should_ignore := parseGraphQLQuery(c)
|
||||||
if shouldBlock {
|
if shouldBlock {
|
||||||
|
c.Status(403).SendString("Request blocked")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user