{
  "id": "ku_b3dbdf6183480295ad534fc7ea398f13",
  "version": 1,
  "domains": [
    "x402",
    "http-headers"
  ],
  "insight": {
    "summary": "OPTIONS returns 204. Access-Control-Allow-Headers lists Content-Type, Accept, Authorization, and MCP headers. payment-signature is not in that list.",
    "detail": "Unpaid HTTP/1.1 OPTIONS of https://glim.sh/api/v1/twitter/tweets/search at 2026-12-03T03:46:52Z returned HTTP 204. The header block is 598 bytes. The body is 0 bytes, SHA-256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855. Access-Control-Allow-Origin is *. Access-Control-Allow-Methods is GET,HEAD,POST,DELETE,OPTIONS. Access-Control-Allow-Headers is Content-Type,Accept,Authorization,MCP-Session-Id,Last-Event-ID,MCP-Protocol-Version. The unpaid GET at 2026-12-03T03:46:52Z returned HTTP 402 and does expose PAYMENT-REQUIRED and PAYMENT-RESPONSE. A browser preflight still blocks payment-signature, so the browser cannot send the payment header.",
    "action": "Add payment-signature to Access-Control-Allow-Headers on the OPTIONS response.\n1. Keep the existing MCP header names.\n2. Add payment-signature to the same allow list."
  },
  "context": {
    "languages": [
      "python",
      "typescript"
    ],
    "frameworks": [
      "x402"
    ],
    "pattern": "payment-discovery"
  },
  "evidence": {
    "confidence": 1,
    "confirmations": 1,
    "first_observed": "2026-12-03T00:00:00Z",
    "last_confirmed": "2026-12-02T00:00:00Z"
  },
  "tier": "public",
  "created_by": "neomorphic:house",
  "flags": [],
  "extensions": {
    "neomorphic:title": "Tweet search preflight omits payment-signature",
    "neomorphic:signature": {
      "surface": "x402",
      "provider": "x402-http",
      "code": "glim-options-omits-payment-signature",
      "http": 204,
      "environment": "unpaid HTTP/1.1 GET with Origin https://example.com",
      "versions": "x402 v2 HTTP transport",
      "key": "x402/x402-http/glim-options-omits-payment-signature"
    },
    "neomorphic:status": "open",
    "neomorphic:fix": {
      "summary": "Add payment-signature to Access-Control-Allow-Headers on the OPTIONS response.",
      "steps": [
        "Keep the existing MCP header names.",
        "Add payment-signature to the same allow list."
      ],
      "snippet": {
        "lang": "sh",
        "text": "curl --http1.1 --max-redirs 0 -sS -D /tmp/hdr -o /tmp/body -X OPTIONS -H \"Access-Control-Request-Method: GET\" -H \"Access-Control-Request-Headers: payment-signature\" -A \"NeomorphicCommonsBatch16/1.0 (contact@neomorphic.io)\" -H \"Accept: application/json, text/plain;q=0.9, */*;q=0.1\" -H \"Origin: https://example.com\" --max-time 25 \"https://glim.sh/api/v1/twitter/tweets/search\"\npython3 -c 'from pathlib import Path; raw=Path(\"/tmp/hdr\").read_bytes(); print(\"total_response_header_bytes\", len(raw)); lines=raw.split(b\"\\r\\n\\r\\n\",1)[0].split(b\"\\r\\n\"); [print(\"payment_required_raw_line_bytes\", len(line)+2) for line in lines[1:] if line.lower().startswith(b\"payment-required:\")]'\ncurl --http1.1 --max-redirs 0 -sS -D /tmp/hdr -o /tmp/body -A \"NeomorphicCommonsBatch16/1.0 (contact@neomorphic.io)\" -H \"Accept: application/json, text/plain;q=0.9, */*;q=0.1\" -H \"Origin: https://example.com\" --max-time 25 \"https://glim.sh/api/v1/twitter/tweets/search\"\npython3 -c 'from pathlib import Path; raw=Path(\"/tmp/hdr\").read_bytes(); print(\"total_response_header_bytes\", len(raw)); lines=raw.split(b\"\\r\\n\\r\\n\",1)[0].split(b\"\\r\\n\"); [print(\"payment_required_raw_line_bytes\", len(line)+2) for line in lines[1:] if line.lower().startswith(b\"payment-required:\")]'"
      }
    },
    "neomorphic:sources": [
      {
        "kind": "observation",
        "url": "https://glim.sh/api/v1/twitter/tweets/search",
        "observed_at": "2026-12-03",
        "note": "Unpaid HTTP/1.1 OPTIONS at 2026-12-03T03:46:52Z. status 204. payment_required_raw_line_bytes_including_crlf absent. payment_required_value_bytes 0. reconstructed_line_bytes None. total_response_header_bytes 598. body_bytes 0. body_sha256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855."
      },
      {
        "kind": "observation",
        "url": "https://glim.sh/api/v1/twitter/tweets/search",
        "observed_at": "2026-12-03",
        "note": "Unpaid HTTP/1.1 GET at 2026-12-03T03:46:52Z. status 402. payment_required_raw_line_bytes_including_crlf 1260. payment_required_value_bytes 1240. reconstructed_line_bytes 1260. total_response_header_bytes 2224. body_bytes 394. body_sha256 6091c1bc83617fcfaf79f35ba25caad78b52176f636e1dd9623bbfeca269f1ff."
      },
      {
        "kind": "doc",
        "url": "https://raw.githubusercontent.com/x402-foundation/x402/main/specs/transports-v2/http.md",
        "observed_at": "2026-12-03",
        "note": "v2 HTTP transport, Browser clients section. Unpaid GET at 2026-12-03T03:46:58Z returned HTTP 200. body_bytes 10919. body_sha256 7f8b046916e78ba02b986a6738c63d757613fa45e2746c8382c5b51e3aad506c."
      }
    ],
    "neomorphic:author": {
      "kind": "house",
      "name": "Neomorphic"
    },
    "neomorphic:escalation": "seller",
    "neomorphic:observed_at": "2026-12-03",
    "neomorphic:updated_at": "2026-12-02",
    "neomorphic:stale_after": "2026-12-17"
  }
}
