-
Notifications
You must be signed in to change notification settings - Fork 16.9k
Open
Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for an issue that matches the one I want to file, without success.
Issue Details
- Electron Version:
- 8.4.0, 9, 10, (added 07.04.2021) 11, 12
- Operating System:
- macOS 10.15.5
- Last Known Working Electron version:
- -
It is not clear how to make WebAuthn works in Electron app if page is local not from webserver.
Expected Behavior
WebAuthn works if page loaded from standard and secure scheme: https://www.electronjs.org/docs/api/protocol#protocolregisterschemesasprivilegedcustomschemes
Actual Behavior
I've faced with the following error:
Uncaught (in promise) DOMException: Public-key credentials are only available to HTTPS origin or HTTP origins that fall under 'localhost'. See https://crbug.com/824383
To Reproduce
https://gist.github.com/mahnunchik/165a117564ebc632a3723d2666f5024c
Additional Information
Related issues:
nikashitsa, bob6664569, avikbis, derekzx, sep2 and 92 moreinson1, Manawyrm, yackermann, timolins, hinricht and 1 moreinson1, Manawyrm, yackermann and hinrichtarlenyan, sep2, imqdee, inson1, schetle and 6 more