Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"This browser doesn't support WebAuthn API" when accessing from VM host #141

Closed
tashian opened this issue Jan 25, 2024 · 1 comment
Closed

Comments

@tashian
Copy link

tashian commented Jan 25, 2024

I'm running this app inside a VM.
When I access it via localhost from inside the VM, it works fine.
When I access it from the host, using the VM's DNS name or IP, I get the "This browser doesn't support WebAuthn API" error, no matter which browser I use.

  • I've given my VM a DNS name, and I've set WEBAUTHN_ORIGIN=http:https://vm.dns.name:3000.
  • I've also set config.hosts << "vm.dns.name:3000"
  • I'm running with development rails env, and I'm binding to 0.0.0.0.
@tashian
Copy link
Author

tashian commented Jan 25, 2024

Ah. WebAuthn requires either localhost or https. I needed to set up a server certificate.

@tashian tashian closed this as completed Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant