From c345f43c065a573feea44d1fb49e5745d5681c2b Mon Sep 17 00:00:00 2001 From: egregors Date: Fri, 9 Aug 2024 13:50:17 +0200 Subject: [PATCH] #20: put port back to origin --- _example/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_example/main.go b/_example/main.go index c6c4c4a..f1230d1 100644 --- a/_example/main.go +++ b/_example/main.go @@ -17,8 +17,8 @@ func main() { proto := "http" // "http" | "https" sub := "" // "" | "login." host := "localhost" // "localhost" | "example.com" - port := ":8080" // port needs only for starting the server, WebauthnConfig.RPOrigins should not contain port - origin := fmt.Sprintf("%s://%s%s", proto, sub, host) + port := ":8080" // ":8080" + origin := fmt.Sprintf("%s://%s%s%s", proto, sub, host, port) storage := NewStorage()