c04fa2c19fdd2d978d64a22ed4fb36b5735385ee
- CORS: Restrict allowed origins to specific frontend URLs, limit methods and headers - Rate Limit: Add fine-grained endpoint-specific rate limits for sensitive operations - Login: 5 requests/minute - Register: 3 requests/hour - Password change: 3 requests/5 minutes - Payment: 20 requests/minute - Admin: 30 requests/minute - CSRF: Add CSRF protection middleware with double-submit cookie pattern - New app/core/csrf.py module with CSRFMiddleware - Require CSRF tokens on sensitive endpoints (auth, payment, profile) - Skip webhook endpoints for CSRF validation - Fix pydantic-settings import in config.py
Description
外贸智能助手 - TradeMate 项目
Languages
Python
49.9%
Vue
44.1%
JavaScript
4.8%
Makefile
0.6%
TypeScript
0.2%
Other
0.2%