feat: enhance security headers and update content security policy in response and HTML files

This commit is contained in:
shuaiplus
2026-03-01 22:34:13 +08:00
committed by Shuai
parent c0683016c3
commit ace9f4f5ac
5 changed files with 19 additions and 14 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
import { useEffect, useMemo, useState } from 'preact/hooks';
import { Link, Route, Switch, useLocation } from 'wouter';
import { useQuery } from '@tanstack/react-query';
import { CircleHelp, Lock, LogOut, Send as SendIcon, Settings as SettingsIcon, Shield, ShieldUser, Vault } from 'lucide-preact';
import { HardDriveDownload, Lock, LogOut, Send as SendIcon, Settings as SettingsIcon, Shield, ShieldUser, Vault } from 'lucide-preact';
import AuthViews from '@/components/AuthViews';
import ConfirmDialog from '@/components/ConfirmDialog';
import ToastHost from '@/components/ToastHost';
@@ -978,8 +978,8 @@ export default function App() {
<span>{t('nav_device_management')}</span>
</Link>
<Link href="/help" className={`side-link ${location === '/help' ? 'active' : ''}`}>
<CircleHelp size={16} />
<span>{t('nav_support_center')}</span>
<HardDriveDownload size={16} />
<span>{t('nav_backup_strategy')}</span>
</Link>
</aside>
<main className="content">