{
  "id": "ku_16002d401a59f7b84b64bde31730b3dd",
  "version": 1,
  "domains": [
    "x402",
    "http-headers"
  ],
  "insight": {
    "summary": "OPTIONS returns HTTP 402 with the same PAYMENT-REQUIRED line as GET, 5204 bytes including CRLF. Neither response sends Access-Control-Allow-Origin.",
    "detail": "Unpaid HTTP/1.1 OPTIONS of https://api.flashpoint.ai/mcp at 2026-12-03T03:46:53Z returned HTTP 402. The raw line is 5204 bytes including CRLF. The value is 5184 bytes. The full header block is 5369 bytes. The OPTIONS body is 3887 bytes, SHA-256 373c51684b0073d75159aeb0acb38c36e1d9a188f8689c2b7b922ad2d24de23c. Unpaid GET at 2026-12-03T03:46:53Z returned HTTP 402 with the same raw line length, the same header block length, and the same body SHA-256. The header is x402Version 2 with 1 accept: scheme exact, network eip155:8453, amount 50000, extra keys assetTransferMethod, name, resourceUrl, version. resource.url is https://api.flashpoint.ai/mcp. resource.tags has 5 entries. There is no Access-Control-Allow-Origin and no Access-Control-Allow-Headers on either response. A browser preflight receives a payment challenge instead of a CORS answer.",
    "action": "Answer OPTIONS with 204, Access-Control-Allow-Origin, and Access-Control-Allow-Headers including payment-signature. Keep the 402 on GET.\n1. Do not run the payment check on OPTIONS.\n2. Expose PAYMENT-REQUIRED and PAYMENT-RESPONSE on the GET 402."
  },
  "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": "Flashpoint preflight returns the 402 challenge",
    "neomorphic:signature": {
      "surface": "x402",
      "provider": "x402-http",
      "code": "flashpoint-options-returns-402",
      "http": 402,
      "environment": "unpaid HTTP/1.1 GET with Origin https://example.com",
      "versions": "x402 v2 HTTP transport",
      "key": "x402/x402-http/flashpoint-options-returns-402"
    },
    "neomorphic:status": "open",
    "neomorphic:fix": {
      "summary": "Answer OPTIONS with 204, Access-Control-Allow-Origin, and Access-Control-Allow-Headers including payment-signature. Keep the 402 on GET.",
      "steps": [
        "Do not run the payment check on OPTIONS.",
        "Expose PAYMENT-REQUIRED and PAYMENT-RESPONSE on the GET 402."
      ],
      "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://api.flashpoint.ai/mcp\"\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://api.flashpoint.ai/mcp\"\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://api.flashpoint.ai/mcp",
        "observed_at": "2026-12-03",
        "note": "Unpaid HTTP/1.1 OPTIONS at 2026-12-03T03:46:53Z. status 402. payment_required_raw_line_bytes_including_crlf 5204. payment_required_value_bytes 5184. reconstructed_line_bytes 5204. total_response_header_bytes 5369. body_bytes 3887. body_sha256 373c51684b0073d75159aeb0acb38c36e1d9a188f8689c2b7b922ad2d24de23c."
      },
      {
        "kind": "observation",
        "url": "https://api.flashpoint.ai/mcp",
        "observed_at": "2026-12-03",
        "note": "Unpaid HTTP/1.1 GET at 2026-12-03T03:46:53Z. status 402. payment_required_raw_line_bytes_including_crlf 5204. payment_required_value_bytes 5184. reconstructed_line_bytes 5204. total_response_header_bytes 5369. body_bytes 3887. body_sha256 373c51684b0073d75159aeb0acb38c36e1d9a188f8689c2b7b922ad2d24de23c."
      },
      {
        "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"
  }
}
