Skip to content

Commit

Permalink
faucet: add origin check
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusKysel committed Dec 21, 2023
1 parent 512ce62 commit 26545ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/faucet/faucet.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func (f *faucet) webHandler(w http.ResponseWriter, r *http.Request) {

// apiHandler handles requests for Ether grants and transaction statuses.
func (f *faucet) apiHandler(w http.ResponseWriter, r *http.Request) {
upgrader := websocket.Upgrader{}
upgrader := websocket.Upgrader{CheckOrigin: func(r *http.Request) bool { return true }}
conn, err := upgrader.Upgrade(w, r, nil)
if err != nil {
return
Expand Down

0 comments on commit 26545ac

Please sign in to comment.