(token, clientToken string)
| 252 | } |
| 253 | |
| 254 | func validateCSRFToken(token, clientToken string) bool { |
| 255 | return subtle.ConstantTimeCompare([]byte(token), []byte(clientToken)) == 1 |
| 256 | } |
| 257 | |
| 258 | var safeMethods = []string{http.MethodGet, http.MethodHead, http.MethodOptions, http.MethodTrace} |
| 259 |
no outgoing calls
no test coverage detected
searching dependent graphs…