fix(chat): add ip-based rate limiting to prevent session rotation abuse (#1436)

This commit is contained in:
dancer 2026-03-02 14:00:40 +00:00 committed by GitHub
parent 211cb96a96
commit ad47aa0ee0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 87 additions and 5 deletions

10
instrumentation-client.ts Normal file
View file

@ -0,0 +1,10 @@
import { initBotId } from "botid/client/core";
initBotId({
protect: [
{
path: "/api/chat",
method: "POST",
},
],
});