'use client' import type { MiddlewareHookReturn } from './types' interface SecurityTabProps { hook: MiddlewareHookReturn } export default function SecurityTab({ hook }: SecurityTabProps) { return (

Security Headers Configuration

{(() => { const config = hook.getConfig('security_headers') if (!config) return

Loading...

return (

HSTS (Strict-Transport-Security)

Force HTTPS connections

{ const newConfig = { ...config.config, hsts_enabled: e.target.checked } hook.updateConfig('security_headers', newConfig) }} className="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded" />

CSP (Content-Security-Policy)

Control resource loading

{ const newConfig = { ...config.config, csp_enabled: e.target.checked } hook.updateConfig('security_headers', newConfig) }} className="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded" />