I'm trying to develop website authentication using WebAuthn. Unfortunately I've run into a problem. When calling navigator.credentials.create I get the following error:
SecurityError: The relying party ID 'https://localhost:7000' is not a registrable domain suffix of, nor equal to 'https://localhost:7000'.
Does this really mean I cannot develop WebAuthn from localhost? I'm using Chrome70 beta by the way. Seems kinda insane that I have to develop on a real domain, debugging and development would become a nightmare.
Any ideas about this? Is localhost really forbidden in WebAuthn?
Thanks
THere are two ways to get rid of this error message:
localhost
localhost
More information about the RP ID in the Webauthn specification
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With