mirror of https://github.com/Xhofe/alist
parent
58c3cb3cf6
commit
1756036a21
|
@ -1,6 +1,7 @@
|
||||||
package authn
|
package authn
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
|
@ -19,7 +20,7 @@ func NewAuthnInstance(r *http.Request) (*webauthn.WebAuthn, error) {
|
||||||
RPDisplayName: setting.GetStr(conf.SiteTitle),
|
RPDisplayName: setting.GetStr(conf.SiteTitle),
|
||||||
RPID: siteUrl.Hostname(),
|
RPID: siteUrl.Hostname(),
|
||||||
//RPOrigin: siteUrl.String(),
|
//RPOrigin: siteUrl.String(),
|
||||||
RPOrigins: []string{siteUrl.String()},
|
RPOrigins: []string{fmt.Sprintf("%s://%s", siteUrl.Scheme, siteUrl.Host)},
|
||||||
// RPOrigin: "http://localhost:5173"
|
// RPOrigin: "http://localhost:5173"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue