fix: resolve SecurityHeaders page rendering issue

Update frontend API layer to correctly unwrap backend response objects.
Backend returns wrapped responses (e.g., {profiles: [...]}) while frontend
was expecting unwrapped arrays. Fixed 6 API methods in securityHeaders.ts
to properly extract data from response wrappers.

Changes:
- listProfiles(): unwrap .profiles
- getProfile(): unwrap .profile
- createProfile(): unwrap .profile
- updateProfile(): unwrap .profile
- getPresets(): unwrap .presets
- applyPreset(): unwrap .profile
This commit is contained in:
GitHub Actions
2025-12-18 03:39:52 +00:00
parent f043a020c4
commit 8b49da4d25
6 changed files with 1132 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
"I am seeing bug [X].
I am seeing bug [X].
Do not propose a fix yet. First, run a Trace Analysis:
@@ -8,6 +8,4 @@ Read these files to understand the full data flow.
Tell me if there is a logic gap between how the Frontend sends data and how the Backend expects it.
Once you have mapped the flow, then propose the plan."
---
Once you have mapped the flow, then propose the plan.