docs: 规范文档对跨域处理的介绍
This commit is contained in:
@@ -426,7 +426,7 @@ ws.onerror = (error) => {
|
||||
### 3. 传输安全
|
||||
|
||||
- **HTTPS 强制**:生产环境必须使用 HTTPS
|
||||
- **CORS 限制**:配置 `AllowedOrigins` 限制允许的域名
|
||||
- **同源反代**:通过 Nginx 反向代理(生产)或 Vite proxy(开发)统一前后端到同一域名,浏览器层面无跨域问题
|
||||
- **HttpOnly Cookie**:refresh_token 存储在 httpOnly Cookie 中,防止 XSS 攻击
|
||||
|
||||
### 4. 防攻击策略
|
||||
|
||||
Reference in New Issue
Block a user