Skip to content

Add security headers to MABP dashboard and API#2

Merged
tjamescouch merged 1 commit intomainfrom
ENGAI-001/security-headers
Feb 6, 2026
Merged

Add security headers to MABP dashboard and API#2
tjamescouch merged 1 commit intomainfrom
ENGAI-001/security-headers

Conversation

@tjamescouch
Copy link
Owner

Summary

  • mabp-dashboard/server.js: Add security headers (HSTS, X-Frame-Options DENY, X-Content-Type-Options nosniff, CSP, Referrer-Policy, X-XSS-Protection 0) to all responses. Reject non-GET/HEAD methods with 405.
  • mabp-api/index.js: Disable X-Powered-By, add security headers middleware, limit JSON body parsing to 64kb.

Test plan

  • Verify dashboard serves index.html with all security headers
  • Verify POST/PUT/DELETE to dashboard returns 405
  • Verify API responses include security headers
  • Verify API rejects JSON bodies > 64kb

🤖 Generated with Claude Code

- mabp-dashboard: HSTS, X-Frame-Options DENY, nosniff, CSP, Referrer-Policy,
  reject non-GET/HEAD with 405
- mabp-api: disable x-powered-by, add security headers middleware,
  limit JSON body to 64kb

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tjamescouch tjamescouch merged commit baa7eaa into main Feb 6, 2026
3 checks passed
@tjamescouch tjamescouch deleted the ENGAI-001/security-headers branch February 14, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant