
🔒 安全响应头检查 — http://localhost:3100/

安全头检查结果:
┌────────────────────────────────────┬────────┬────────────────────────────────────────┬────────────────────────────────────────┐
│ Header                             │ Status │ Expected                               │ Actual                                 │
├────────────────────────────────────┼────────┼────────────────────────────────────────┼────────────────────────────────────────┤
│ Content-Security-Policy            │ ✅ PASS   │ 存在（需包含合理策略）                            │ default-src 'self'; script-src 'self' 'unsafe-inline' https://www.googletagmanager.com https://ssl.google-analytics.com; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https://www.google-analytics.com https://ssl.google-analytics.com https://www.googletagmanager.com; font-src 'self'; connect-src 'self' https://www.google-analytics.com https://ssl.google-analytics.com https://www.googletagmanager.com; frame-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; │
│ X-Content-Type-Options             │ ✅ PASS   │ nosniff                                │ nosniff                                │
│ X-Frame-Options                    │ ✅ PASS   │ DENY 或 SAMEORIGIN                      │ DENY                                   │
│ Strict-Transport-Security          │ ⚠️ WARN  │ 存在（需包含 max-age）                        │ (未设置)                                  │
│ Referrer-Policy                    │ ✅ PASS   │ 存在（如 strict-origin-when-cross-origin）  │ strict-origin-when-cross-origin        │
│ Permissions-Policy                 │ ✅ PASS   │ 存在（需配置合理权限）                            │ camera=(), microphone=(), geolocation=(), interest-cohort=() │
│ X-XSS-Protection                   │ ✅ PASS   │ 存在（0 或 1; mode=block）                  │ 1; mode=block                          │
│ Access-Control-Allow-Origin        │ ✅ PASS   │ 无（不暴露 CORS 头）                          │ (未设置)                                  │
└────────────────────────────────────┴────────┴────────────────────────────────────────┴────────────────────────────────────────┘

🍪 Cookie 安全标记: 无 Cookie 设置


📝 说明:
   • [⚠️] Strict-Transport-Security: 强制 HTTPS 连接，防止 SSL Strip 攻击

📊 检查摘要

   安全头检查:
     总计: 8
     ✅ 通过: 7
     ⚠️  警告: 1
     ❌ 失败: 0

✅ 所有关键安全头检查通过！
