✅ Secure Insecure Design Demo
This secure implementation demonstrates proper design where approval status is enforced server-side only. Clients cannot tamper with it.
🔍 How to Test:
- Submit any request description above.
- Observe that
approved: false
is always enforced by the server. - Open DevTools → Network → Inspect the POST payload — it doesnot include any approval field.
- Server logic decides whether a request gets approved.