docs: 规范文档对跨域处理的介绍

This commit is contained in:
hhs
2026-06-21 13:10:48 +08:00
parent d53265755a
commit 910e71b6f0
2 changed files with 2 additions and 1 deletions

View File

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