You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Accept will not allow cross origin requests by default.// See the InsecureSkipVerify option to allow cross origin requests.//// Accept will write a response to w on all errors.funcAccept(w http.ResponseWriter, r*http.Request, opts*AcceptOptions) (*Conn, error) {
returnaccept(w, r, opts)
}
InsecureSkipVerify is deprecated as mentioned in docs. When you see it is deprecated you end up in AcceptOptions{OriginPatterns: []string{x}}.
I suggest to change the code snippet mentioned above by:
// Accept will not allow cross origin requests by default.// See the OriginPatterns option to allow cross origin requests.//// Accept will write a response to w on all errors.funcAccept(w http.ResponseWriter, r*http.Request, opts*AcceptOptions) (*Conn, error) {
returnaccept(w, r, opts)
}
The text was updated successfully, but these errors were encountered:
InsecureSkipVerify is deprecated as mentioned in docs. When you see it is deprecated you end up in AcceptOptions{OriginPatterns: []string{x}}.
I suggest to change the code snippet mentioned above by:
The text was updated successfully, but these errors were encountered: