node-jenkins-api
node-jenkins-api copied to clipboard
Need to support CSRF protection
Tried this against jenkins 2.7.1 which by default is configured securely with "Prevent Cross Site Request Forgery exploits" enabled (e.g. the create_job api). This blows up with a 403 unauthorized error because the API client is not aware of the token and is not submitting it.
See https://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API#RemoteaccessAPI-CSRFProtection
@jaxley see my quick fix #58