Skip to content

Commit

Permalink
webtransport: disable HTTP origin check (#1752)
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann authored Sep 15, 2022
1 parent ddfb6f9 commit a4e45c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion p2p/transport/webtransport/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ func newListener(laddr ma.Multiaddr, transport tpt.Transport, noise *noise.Trans
serverClosed: make(chan struct{}),
addr: udpConn.LocalAddr(),
multiaddr: localMultiaddr,
server: webtransport.Server{H3: http3.Server{TLSConfig: tlsConf}},
server: webtransport.Server{
H3: http3.Server{TLSConfig: tlsConf},
CheckOrigin: func(r *http.Request) bool { return true },
},
}
ln.ctx, ln.ctxCancel = context.WithCancel(context.Background())
mux := http.NewServeMux()
Expand Down

0 comments on commit a4e45c2

Please sign in to comment.