mirror of
https://github.com/rancher/norman.git
synced 2025-09-01 23:36:58 +00:00
Attempt to fix CSRF, still untested though
This commit is contained in:
@@ -166,7 +166,7 @@ func (s *Server) handle(rw http.ResponseWriter, req *http.Request) (*types.APICo
|
||||
return apiRequest, err
|
||||
}
|
||||
|
||||
if err := CheckCSRF(rw, req); err != nil {
|
||||
if err := CheckCSRF(apiRequest); err != nil {
|
||||
return apiRequest, err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user