{
  "id": "ku_ddab9939102aeb6ee6ab999e0fb09703",
  "version": 1,
  "domains": [
    "x402",
    "cors",
    "browser",
    "seller"
  ],
  "insight": {
    "summary": "A browser on another origin gets your 402 and cannot read PAYMENT-REQUIRED, because Access-Control-Expose-Headers does not name it.",
    "detail": "Unpaid GETs on 2026-12-02 of https://pro-api.coingecko.com/api/v3/x402/onchain/search/pools and https://pro-api.coingecko.com/api/v3/x402/simple/price?ids=bitcoin&vs_currencies=usd each returned HTTP 402. Both sent Access-Control-Allow-Origin: * and Access-Control-Expose-Headers: link, per-page, total. PAYMENT-REQUIRED was on the response and was not in that list. PAYMENT-RESPONSE was not in that list either. OPTIONS on both routes returned HTTP 200 with Access-Control-Allow-Headers: PAYMENT-SIGNATURE, Content-Type, so those preflights already allow the payment header. Two other paid routes, https://websearch.use.x402atlas.com/search and https://coingecko.use.x402atlas.com/price, returned OPTIONS 405 with Allow: GET, so a browser preflight does not succeed there. https://edgar.apitoll.cloud/v1/edgar/filings returned OPTIONS 200 with Allow: GET, HEAD and no Access-Control-Allow-Headers, so that preflight does not name PAYMENT-SIGNATURE. A cross-origin fetch cannot read PAYMENT-REQUIRED unless the expose list names it, and cannot send PAYMENT-SIGNATURE unless the preflight allows it.",
    "action": "Expose PAYMENT-REQUIRED and PAYMENT-RESPONSE, allow PAYMENT-SIGNATURE on the preflight, and answer OPTIONS with 2xx.\n1. On the 402, add PAYMENT-REQUIRED and PAYMENT-RESPONSE to Access-Control-Expose-Headers. Keep names you already send, such as link, per-page, and total.\n2. On OPTIONS, answer 2xx and include PAYMENT-SIGNATURE in Access-Control-Allow-Headers.\n3. Check the response headers with curl and an Origin header. A value of * on Expose-Headers does not name these headers."
  },
  "context": {
    "languages": [
      "http",
      "shell"
    ],
    "pattern": "cross-origin"
  },
  "evidence": {
    "confidence": 0.9,
    "confirmations": 1,
    "first_observed": "2026-12-02T00:00:00Z",
    "last_confirmed": "2026-12-02T00:00:00Z"
  },
  "tier": "public",
  "created_by": "neomorphic:house",
  "flags": [],
  "extensions": {
    "neomorphic:title": "CoinGecko Pro 402 hides PAYMENT-REQUIRED from cross-origin clients",
    "neomorphic:signature": {
      "surface": "x402",
      "provider": "x402-http",
      "code": "expose-headers-omit-payment",
      "http": 402,
      "versions": "x402 v2 HTTP transport",
      "environment": "CoinGecko Pro x402 routes and paid 402 gateways",
      "key": "x402/x402-http/expose-headers-omit-payment"
    },
    "neomorphic:status": "fixed",
    "neomorphic:fix": {
      "summary": "Expose PAYMENT-REQUIRED and PAYMENT-RESPONSE, allow PAYMENT-SIGNATURE on the preflight, and answer OPTIONS with 2xx.",
      "steps": [
        "On the 402, add PAYMENT-REQUIRED and PAYMENT-RESPONSE to Access-Control-Expose-Headers. Keep names you already send, such as link, per-page, and total.",
        "On OPTIONS, answer 2xx and include PAYMENT-SIGNATURE in Access-Control-Allow-Headers.",
        "Check the response headers with curl and an Origin header. A value of * on Expose-Headers does not name these headers."
      ],
      "snippet": {
        "lang": "http",
        "text": "Access-Control-Allow-Origin: *\nAccess-Control-Expose-Headers: link, per-page, total, PAYMENT-REQUIRED, PAYMENT-RESPONSE\nAccess-Control-Allow-Headers: PAYMENT-SIGNATURE, Content-Type\nAccess-Control-Allow-Methods: GET, POST"
      }
    },
    "neomorphic:sources": [
      {
        "kind": "observation",
        "url": "https://pro-api.coingecko.com/api/v3/x402/onchain/search/pools",
        "observed_at": "2026-12-02",
        "note": "Unpaid GET on 2026-12-02 returned HTTP 402. Allow-Origin was *. Expose-Headers was link, per-page, total. PAYMENT-REQUIRED value was 6644 bytes. OPTIONS returned 200 and allowed PAYMENT-SIGNATURE, Content-Type."
      },
      {
        "kind": "observation",
        "url": "https://pro-api.coingecko.com/api/v3/x402/simple/price?ids=bitcoin&vs_currencies=usd",
        "observed_at": "2026-12-02",
        "note": "Unpaid GET on 2026-12-02 returned HTTP 402 with the same expose list. PAYMENT-REQUIRED value was 3300 bytes. No resource.tags. OPTIONS returned 200 and allowed PAYMENT-SIGNATURE, Content-Type."
      },
      {
        "kind": "observation",
        "url": "https://websearch.use.x402atlas.com/search",
        "observed_at": "2026-12-02",
        "note": "Unpaid OPTIONS on 2026-12-02 returned HTTP 405 with Allow: GET. The GET was HTTP 402 and sent no Access-Control-Allow-Origin."
      },
      {
        "kind": "observation",
        "url": "https://coingecko.use.x402atlas.com/price",
        "observed_at": "2026-12-02",
        "note": "Unpaid OPTIONS on 2026-12-02 returned HTTP 405 with Allow: GET. The GET was HTTP 402 and sent no Access-Control-Allow-Origin."
      },
      {
        "kind": "observation",
        "url": "https://edgar.apitoll.cloud/v1/edgar/filings",
        "observed_at": "2026-12-02",
        "note": "Unpaid OPTIONS on 2026-12-02 returned HTTP 200 with Allow: GET, HEAD. No Access-Control-Allow-Headers and no Access-Control-Allow-Origin."
      },
      {
        "kind": "doc",
        "url": "https://github.com/x402-foundation/x402/blob/main/specs/transports-v2/http.md",
        "observed_at": "2026-12-02",
        "note": "Browser clients section, read 2026-12-02: name PAYMENT-REQUIRED and PAYMENT-RESPONSE in Access-Control-Expose-Headers, and name PAYMENT-SIGNATURE in the preflight allow list."
      },
      {
        "kind": "doc",
        "url": "https://docs.coingecko.com/ai-integration/x402",
        "observed_at": "2026-12-02",
        "note": "CoinGecko pay-per-use x402 docs, HTTP 200 on 2026-12-02. The two probed routes are the Pro API x402 paths, not the OAuth MCP host."
      },
      {
        "kind": "pull-request",
        "url": "https://github.com/epistemedeus/x402-data-gateway-skills/pull/35",
        "observed_at": "2026-12-02",
        "note": "First draft of the CoinGecko expose-header failure, from unpaid 402 probes. Rechecked on the routes above before this record was published."
      },
      {
        "kind": "pull-request",
        "url": "https://github.com/epistemedeus/x402-data-gateway-skills/pull/37",
        "observed_at": "2026-12-02",
        "note": "Unpaid x402-cors-and-tags-check 0.1.0 on 2026-12-02 reported cors_expose_headers_missing on both CoinGecko Pro routes. The preflight allow miss was on the edgar route, not those two."
      }
    ],
    "neomorphic:author": {
      "kind": "house",
      "name": "Neomorphic"
    },
    "neomorphic:escalation": "seller",
    "neomorphic:observed_at": "2026-12-02",
    "neomorphic:updated_at": "2026-12-02",
    "neomorphic:stale_after": "2027-06-01"
  }
}
