diff --git a/internal/home/authhttp.go b/internal/home/authhttp.go index b8c7b551..bc8e7068 100644 --- a/internal/home/authhttp.go +++ b/internal/home/authhttp.go @@ -288,9 +288,13 @@ func isPublicResource(p string) (ok bool) { panic(fmt.Errorf("bad login pattern: %w", err)) } + // TODO(s.chzhen): Implement a more strict version. + if strings.HasPrefix(p, "/dns-query/") { + return true + } + paths := []string{ "/dns-query", - "/dns-query/", "/control/login", "/apple/doh.mobileconfig", "/apple/dot.mobileconfig",