mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-11 07:42:58 +03:00
🐛 Bug Report: Add passkey /login/setup Something went wrong, Error #1 #399
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @moesix on GitHub.
Reproduction steps
Installed on Docker LXC
Through Nginx -> Cloudflare DNS Proxy
Through Nginx -> Cloudflare DNS Only
Through Nginx -> Cloudflare Zero Trust Tunnel -> Cloudflare DNS
PocketID -> Cloudflare Zero Trust Tunnel -> Cloudflare DNS
Go to domain.com/login/setup
Add passkey
Expected behavior
Add passkey success
Actual Behavior
Add passkey results in Something went wrong after adding the passkey to Android phone and Windows 11 device.
log output:
[GIN] 2025/01/18 - 16:37:10 | 200 | 9.307612ms | M.Y.I.P | GET "/api/webauthn/register/start"
[GIN] 2025/01/18 - 16:37:10 | 200 | 9.390363ms | M.Y.I.P | GET "/api/webauthn/register/start"
[GIN] 2025/01/18 - 16:37:15 | 500 | 1.936821ms | M.Y.I.P | POST "/api/webauthn/register/finish"
Error #01: Error validating origin
[GIN] 2025/01/18 - 16:37:15 | 500 | 1.997166ms | M.Y.I.P | POST "/api/webauthn/register/finish"
Error #01: Error validating origin
Other services on the same docker LXC works fine.
@steelsparky commented on GitHub:
I was just having the same issue... and removed / from the end of address and now it works - thank you!
@moesix commented on GitHub:
Yup I am. Cert given correctly in either scenario as a letsencrypt cert or a WE1 if over cloudflare proxy / zero trust tunnel.
@kmendell commented on GitHub:
are you using https when access the initial setup?
@stonith404 commented on GitHub:
Does
PUBLIC_APP_URLmatch with the URL you access Pocket ID? If yes can you share the value ofPUBLIC_APP_URL?@moesix commented on GitHub:
Yes the PUBLIC_APP_URL matches. It's currently set to http://id.xxxxx.io
Browser loads to https://id.xxxx.io
Currently it's set to Cloudflare proxy dns only without ZT just to rule out ZT being the issue.
Nginx has
proxy_busy_buffers_size 512k;
proxy_buffers 4 512k;
proxy_buffer_size 256k;
@moesix commented on GitHub:
Wow ok yeah, that's a miss on my end. Thanks @stonith404 ! Working as expected now
@stonith404 commented on GitHub:
http://id.layershift.iodoesn't match tohttps://id.layershift.io. The protocol must match too.