cmd/tsconnect: make logtail uploading work

Initialize logtail and provide an uploader that works in the
browser (we make a no-cors cross-origin request to avoid having to
open up the logcatcher servers to CORS).

Fixes #5147

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
This commit is contained in:
Mihai Parparita
2022-08-03 16:15:21 -07:00
committed by Mihai Parparita
parent 4950fe60bd
commit f371a1afd9
3 changed files with 83 additions and 12 deletions

View File

@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !windows
// +build !windows
//go:build !windows && !js
// +build !windows,!js
package filch