1
0
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:
Darren Shepherd
2017-12-29 15:04:12 -07:00
parent 2b7bc0968a
commit f5e2adb427
2 changed files with 9 additions and 9 deletions

View File

@@ -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
}