Skip to content

Commit 26f98ae

Browse files
committed
Explicitly state that Accept does not allow cross origin requests
Closes #91
1 parent 29d6b09 commit 26f98ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

accept.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ func verifyClientRequest(w http.ResponseWriter, r *http.Request) error {
7979
// the connection to a WebSocket.
8080
//
8181
// Accept will reject the handshake if the Origin domain is not the same as the Host unless
82-
// the InsecureSkipVerify option is set.
82+
// the InsecureSkipVerify option is set. In other words, by default it does not allow
83+
// cross origin requests.
8384
//
8485
// The returned connection will be bound by r.Context(). Use conn.Context() to change
8586
// the bounding context.

0 commit comments

Comments
 (0)