Skip to content

Middleware & Security

All API requests pass through functions/api/_middleware.js which enforces authentication, CSRF protection, and rate limiting.

All mutating requests (POST/PUT/PATCH/DELETE) require a valid Origin or Referer header matching allowed origins:

  • https://dashboard.fjzippin.com
  • http://localhost (development only)
Endpoint CategoryLimitWindow
Admin endpoints (/api/access, /api/setup)30 req1 min
AI endpoints (/api/langflow, /api/messages)10 req1 min
All other endpoints200 req1 min