Files
grok2api/app/dataplane
KK1aus 701525856a fix: correct x-statsig-id format to bypass anti-bot rules
The grok.com frontend's fetch interceptor generates x-statsig-id by
running a Statsig SDK evaluation per request. When that evaluation
fails (headless, first paint, etc.), it falls back to:

    btoa("x1:" + error.toString())

The old code used the prefix "e:" instead of "x1:", which Grok's
anti-bot now detects and rejects with HTTP 403.

Verified against 3 SSO tokens — all return 200 on app-chat endpoints.

Fixes #562
2026-06-03 11:23:08 +08:00
..