From 6ec16b0afa1782db45e1593e38c6c9a341fa98f2 Mon Sep 17 00:00:00 2001 From: mivanchenko Date: Sat, 12 Sep 2026 00:03:20 +0200 Subject: [PATCH] Temp: add debug headers route to diagnose ProxyFix scheme detection Will be removed once the proto-forwarding issue is diagnosed. Co-Authored-By: Claude Sonnet 5 --- backoffice/app/app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backoffice/app/app.py b/backoffice/app/app.py index 05a3ed6..d71a03b 100644 --- a/backoffice/app/app.py +++ b/backoffice/app/app.py @@ -84,6 +84,11 @@ def rows_json(rows): return [{k: jsonable(v) for k, v in r.items()} for r in rows] +@app.get("/owner/_debug_headers") +def _debug_headers(): + return jsonify({"scheme": request.scheme, "headers": dict(request.headers)}) + + @app.get("/healthz") def healthz(): try: