Commit Graph

3 Commits (72786687b9646f29793d7326c7978edd47c810ca)

Author SHA1 Message Date
墨梓柒 ea420f9f59
添加认证依赖和请求频率限制模块,增强安全性和防止API滥用 2025-12-14 19:39:56 +08:00
墨梓柒 e680a4d1f5
Ruff format 2025-12-13 17:14:09 +08:00
墨梓柒 c790dcb705
feat: Enhance authentication mechanism to support token retrieval from both Cookie and Header
- Added a new auth module to manage authentication-related functions.
- Updated existing routes in expression_routes, person_routes, plugin_routes, and routes to utilize the new authentication methods.
- Implemented CORS middleware in webui_server for development environment support.
- Introduced functions to set and clear authentication cookies.
- Enhanced token verification to prioritize Cookie over Header for improved security and flexibility.
2025-11-30 15:53:39 +08:00