From 617785ad5151cfacc07ceca906f9e422e2804769 Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Wed, 18 Dec 2024 19:45:45 -0700 Subject: [PATCH] f u wannabe cors --- cmd/testapi/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/testapi/main.go b/cmd/testapi/main.go index 9e34183..804fa87 100644 --- a/cmd/testapi/main.go +++ b/cmd/testapi/main.go @@ -146,7 +146,9 @@ func (s *S) Session(ctx context.Context) Session { func (s *S) serveWS(w http.ResponseWriter, r *http.Request) error { ctx := r.Context() - c, err := websocket.Accept(w, r, nil) + c, err := websocket.Accept(w, r, &websocket.AcceptOptions{ + InsecureSkipVerify: true, + }) if err != nil { return err }