Skip to content

Commit

Permalink
#20: put port back to origin
Browse files Browse the repository at this point in the history
  • Loading branch information
egregors committed Aug 9, 2024
1 parent ce2c3b5 commit c345f43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit c345f43

Please sign in to comment.