diff --git a/internal/agent/controller/app/server.go b/internal/agent/controller/app/server.go index df34bcf..f22824b 100644 --- a/internal/agent/controller/app/server.go +++ b/internal/agent/controller/app/server.go @@ -178,7 +178,7 @@ func NewServer(bundle bundle.Bundle, config *spec.Config, handlerOptions ...edge func getCookieDomain(r *http.Request) (string, error) { host, _, err := net.SplitHostPort(r.Host) if err != nil { - return "", errors.WithStack(err) + host = r.Host } // If host is an IP address