Answer the question
In order to leave comments, you need to log in
How does CSRF protection work in the new Jenkins?
The client is written in C++ (Qt, cURL) and works like this.
1. Goes to http://localhost:8080/crumbIssuer/api/xml
2. Parses XML and gets a string
Jenkins-Crumb: 3de9f4007192ee43a96f2f04a0c2a161a03b26d83259c1448c220a5cd43ee766
http://localhost:8080/job/project/buildWithParameters?token=build
Answer the question
In order to leave comments, you need to log in
If Jenkins is not open to the outside, then you can simply disable the "Prevent Cross Site Request Forgery" checkbox.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question