You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (logger) |lg|lg.debugf("[GraphQL] POST body (first 512 bytes): {s}", .{snippet}, null) catch {} elsestd.debug.print("[GraphQL] POST body (first 512 bytes): {s}\n", .{snippet});
415
+
if (std.mem.indexOf(u8, body, "__schema") !=null) {
416
+
if (logger) |lg|lg.debug("[GraphQL] Detected introspection query in POST body", null) catch {} elsestd.debug.print("[GraphQL] Detected introspection query in POST body\n", .{});
417
+
returnResponse.jsonRaw(cached_introspection)
418
+
.setHeader("Access-Control-Allow-Origin", "*");
419
+
}
409
420
}
410
421
411
422
// For GET requests with introspection
412
423
if (ctx.method() ==.GET) {
413
424
if (ctx.query("query")) |query| {
414
425
if (std.mem.indexOf(u8, query, "__schema") !=null) {
426
+
if (logger) |lg|lg.debug("[GraphQL] Detected introspection query in GET", null) catch {} elsestd.debug.print("[GraphQL] Detected introspection query in GET\n", .{});
0 commit comments