Files
werewulf/hpcod/internal/httpapi
ilkerandClaude Opus 5 ee6ef5566c hpcod: stop putting the control plane's headers on the cluster's pages
Every form in Open OnDemand came back 422. The control plane's security
headers were wrapped around everything it served, the proxy included, so
a cluster portal's responses carried two Content-Security-Policy headers,
two X-Frame-Options - DENY over the cluster's own SAMEORIGIN - and
Referrer-Policy: no-referrer.

The last one is what caused the 422. With no-referrer a browser sends
"Origin: null", and Rails' origin check rejects the request. Twelve of
them in the portal's log.

The headers now wrap the control plane's own handler, its login page
included, and the proxy sits outside. A cluster portal is a different
application and sets its own; overriding them from the outside is not
hardening, it is breaking an application whose security posture is not
this one's to decide.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 22:13:25 +02:00
..