# Bug Investigation: Security Header Profile Not Persisting **Created:** 2025-12-18 **Status:** Investigation Complete - Root Cause Identified --- ## Bug Report Security header profile changes are not persisting to the database when editing proxy hosts. **Observed Behavior:** 1. User assigns "Strict" profile to a proxy host → Saves successfully ✓ 2. User edits the same host, changes to "Basic" profile → Appears to save ✓ 3. User reopens the host edit form → Shows "Strict" (not "Basic") ❌ **The profile change is NOT persisting to the database.** --- ## Root Cause Analysis ### Investigation Summary I examined the complete data flow from frontend form submission to backend database save. The code analysis reveals that **the implementation SHOULD work correctly**, but there are potential issues with value handling and silent error conditions. ### Frontend Code Analysis **File:** [frontend/src/components/ProxyHostForm.tsx](../../frontend/src/components/ProxyHostForm.tsx) **Lines 656-661:** Security header profile dropdown and onChange handler ```tsx