mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-11 07:42:58 +03:00
🐛 Bug Report: Error validating origin #92
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 @strangerinusall on GitHub.
Reproduction steps
When I deploy PocketID on macOS and set it up to be accessed at
https://auth.localhost(with reverse proxy via Caddy), attempting to register a passkey always fails with an origin error. The WebAuthn registration challenge shows"rpId": "localhost"even though everything is configured forauth.localhost. Not sure if that's the cause of the issue.Steps to reproduce the behaviour:
PUBLIC_APP_URL=https://auth.localhost(full config below)https://auth.localhostin Safari (macOS)When I follow flow from https://auth.localhost/signup/setup, once user information is added, and I try to add a Passkey, I get "Something went wrong. Please try to sign in again.", but the new Passkey appears in my MacOS Passwords app. However, logging in using this Passkey is not possible. I always make sure to access app via https://auth.localhost (https).
docker-compose.yaml
Caddyfile
Expected behavior
Adding of Passkey was successful.
Actual Behavior
Adding of Passkey failed.
Version and Environment
pocket-id 1.6.4
Log Output
when doing Inspect Element in browser console I see error
"Failed to load resource: the server responded with a status of 500 )".@kmendell commented on GitHub:
Change PUBLIC_APP_URL to just APP_URL, that should fix that issue for you
@strangerinusall commented on GitHub:
Yes, this fixed it, thank you!! I saw similar advice before on this in other issues but it was related to some migrations, so didn't think of trying.