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
Vue
46%
Python
44.5%
JavaScript
5.8%
HTML
2.4%
CSS
0.5%
Other
0.7%