Open titocosta opened 1 year ago
The expected origin is specified strictly as "https://" + callableContext.rawRequest.hostname
, which I recognize makes it impossible to test on localhost. This is hardcoded in a few lines of getFirebaseWebAuthnApi.ts.
The W3C spec specifies that the expected origin must be on https, so I'm not sure if it's possible to test on localhost and I've never tried. However, I've added "expect alternate port" to my list.
You should be able to test it on local with a simple caddy
server:
Caddyfile:
app.localhost {
reverse_proxy localhost:3000
}
Then you can open [https://app.localhost]()
Extension works ok when hosting on Vercel on default port but the cloud function throws this error on localhost.
Not sure where I should specify a different port number and protocol to get the verification through?