I am testing a very simple webauthn example written with go from https://github.com/hbolimovsky/webauthn-example and it works very well when I build it for the host machine. I am using MacOS Big Sur with Chrome 91. However, if I build the example for an arm7/linux machine, I am getting "browser not supported" error message.
Clearly the browser is supported since it works on the host machine. The code that checks for browser support is this
// check whether current browser supports WebAuthn
if (!window.PublicKeyCredential) {
alert("Error: this browser does not support WebAuthn");
return;
}
The cross compiled machine doesn't have internet access though I am highly doubtful that that is the reason. What can be the reason for this?
I am accessing the cross compiled machine through it's IP address. Can that be the reason? To test this I accessed it through it's bonjour name and that didn't make a difference.