Rancher 2.0 use API from postman

Rancher versions:
rancher/rancher: 2.0.5

Try to send login API by postman, but got error message: “Invalid CSRF token”,“status”:422.

But sometimes, login success and return token, and then use this token to create cluster,
got same error message: “Invalid CSRF token”,“status”:422,

Does anyone have any ideas on this?

https://github.com/rancher/rancher/issues/14505 -> https://github.com/rancher/rancher/issues/1681#issuecomment-400865472

1 Like

In case you are still getting the error. The same happened to me when I was using the Google Chrome postman App. I installed the desktop version of postman and I no longer get the error.


Thanks, this solved the problem