{
  "slug": "shopify-cli-graphiql-allows-custom-admin-api-headers-626e89a607a8",
  "title": "Shopify CLI GraphiQL allows custom Admin API headers",
  "tools": [
    "shopify"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-01-29T21:42:11.000Z",
  "announced_at": "2026-01-29T21:42:11.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When debugging an Admin API query in Shopify CLI GraphiQL, add `Shopify-Search-Query-Debug=1` in the header editor to forward that custom header to the Admin API. The editor is enabled in CLI GraphiQL; safe custom headers are forwarded while filtered headers are blocked.",
    "examples": [
      "shopify app dev\n# In GraphiQL, add Shopify-Search-Query-Debug: 1 in the header editor."
    ],
    "gotchas": [
      "Version: 3.90.0",
      "Shopify-Search-Query-Debug: Example custom header allowed through to the Admin API for debugging.",
      "isHeadersEditorEnabled (required): GraphiQL component setting enabled to show the header editor.",
      "Prerequisite: Use Shopify CLI's local GraphiQL instance while running `shopify app dev`; it authenticates as the app and has the app's access scopes.",
      "Prerequisite: The app must be installed on the store.",
      "Problematic browser and hop-by-hop headers are filtered; proxy-controlled headers are not forwarded."
    ]
  },
  "why_it_matters": "When debugging an Admin API query from the CLI's GraphiQL interface, pass a custom debugging header.",
  "before": "CLI GraphiQL did not allow passing custom headers; its header editor had been disabled.",
  "sources": [
    "https://github.com/Shopify/cli/releases/tag/3.90.0",
    "https://github.com/Shopify/cli/pull/6703",
    "https://shopify.dev/docs/apps/build/apis/graphql-admin/api-exploration/admin-graphiql-explorer",
    "https://shopify.dev/docs/api/shopify-cli/app/app-graphiql"
  ],
  "rank": 0.97019,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-5b01ab112fbd7eaf-0:gate",
    "evidence_hash": "2a4a57e332f198b2ebb76fc6ef6b2e78077e2166e2941f8d68e145e2e009fc40"
  },
  "review": {
    "draft_hash": "df48a9b1b7186ccd145385e63b97831cab080dd6fa70ee1bef834bf3615a3838",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.97 >= 0.9; 2 needed) and Jev gave 0.60 (>= 0.6 needed)."
  }
}
