f u wannabe cors
parent
d2fa707628
commit
617785ad51
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue