WebAuthn is only available to pages which are in a secure context. Specifically, pages served from the following origins can use WebAuthn:
localhost or a domain ending in .localhost. These pages follow the same rules for asserting an RP, where localhost is considered a TLD.chrome-extension scheme in Chrome or similar schemes in other Chromium-based browsers. These pages should leave the RP ID fields in WebAuthn structures blank to accept the default.