chris 1a1fe7044a Fix admin gallery auth: use X-Admin-Password header instead of Authorization Bearer
NPMplus proxy strips the Authorization header before it reaches the backend,
causing all write operations to return 401. Switch to a custom X-Admin-Password
header which passes through the proxy unmodified.

- backend/routes/photos.js: requireAuth checks X-Admin-Password first, falls
  back to Authorization Bearer for compatibility
- backend/server.js: add X-Admin-Password to CORS allowedHeaders
- admin/admin.js: send X-Admin-Password instead of Authorization Bearer
  in all fetch calls and XHR upload requests

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-27 10:13:36 -04:00
Description
No description provided
186 MiB
Languages
TypeScript 52.6%
JavaScript 21%
HTML 11.2%
CSS 8%
Shell 6.6%
Other 0.6%