mirror of
https://github.com/chenyme/grok2api.git
synced 2026-12-06 16:01:07 +00:00
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