What happened?
Claworc is deployed behind a reverse proxy with additional authentication (Pangolin). Everything works correctly except for WebAuthn (Passkeys). When attempting to add a Passkey, the following error occurs: "Registration failed: Error validating origin."
The environment variables are set correctly and the domain is valid.
docker exec claworc-dashboard env | grep CLAWORC
CLAWORC_DATA_PATH=/app/data
CLAWORC_RP_ORIGIN=https://claworc.MY_DOMAIN.com
CLAWORC_RP_ID=claworc.MY_DOMAIN.com
The reverse proxy is configured to forward headers
host: claworc.MY_DOMAIN.com
x-forwarded-proto: https
x-forwarded-host: claworc.MY_DOMAIN.com
Origin is correct
However, based on the logs - WebAuthn\Claworc does not appear to pick up the correct HTTPS protocol from the headers — the logs show a URL with HTTP instead of HTTPS.
Steps to reproduce
Try to create Passkey when Claworc is reverse-proxied
Expected behavior
Passkey is registered successfully, and the correct protocol is picked up from the X-Forwarded-Proto header
Area
Auth (login, sessions, passkeys, RBAC)
Platform
Docker / Docker Compose
Relevant logs or screenshots
"POST http://claworc.MY_DOMAIN.com/api/v1/auth/webauthn/register/finish..."
^^^^
2026/04/15 11:45:48 "GET http://claworc-dashboard:8000/health HTTP/1.1" from 172.18.0.3:46714 - 200 157B in 44.898µs
2026/04/15 11:45:49 "GET http://claworc.MY_DOMAIN.com/health HTTP/1.1" from 172.18.0.3:54234 - 200 157B in 32.349µs
2026/04/15 11:45:52 "POST http://claworc.MY_DOMAIN.com/api/v1/auth/webauthn/register/finish?name=HP HTTP/1.1" from 172.18.0.3:54234 - 400 58B in 513.066µs
2026/04/15 11:45:53 "GET http://claworc-dashboard:8000/health HTTP/1.1" from 172.18.0.3:48880 - 200 157B in 52.55µs
2026/04/15 11:45:54 "GET http://claworc.MY_DOMAIN.com/api/v1/llm/catalog HTTP/1.1" from 172.18.0.3:54234 - 403 35B in 208.535µs
Version or commit
latest
What happened?
Claworc is deployed behind a reverse proxy with additional authentication (Pangolin). Everything works correctly except for WebAuthn (Passkeys). When attempting to add a Passkey, the following error occurs: "Registration failed: Error validating origin."
The environment variables are set correctly and the domain is valid.
The reverse proxy is configured to forward headers
Origin is correct
However, based on the logs - WebAuthn\Claworc does not appear to pick up the correct HTTPS protocol from the headers — the logs show a URL with HTTP instead of HTTPS.
Steps to reproduce
Try to create Passkey when Claworc is reverse-proxied
Expected behavior
Passkey is registered successfully, and the correct protocol is picked up from the X-Forwarded-Proto header
Area
Auth (login, sessions, passkeys, RBAC)
Platform
Docker / Docker Compose
Relevant logs or screenshots
Version or commit
latest