How to request for the crumb issuer for Jenkins

前端 未结 8 1273
孤城傲影
孤城傲影 2020-12-08 05:09

I want to use the Jenkins Remote API, and I am looking for safe solution. I came across Prevent Cross Site Request Forgery exploits and I want to use it, but I

8条回答
  •  -上瘾入骨i
    2020-12-08 05:27

    User cheffe's Java snippet worked great for me on Jenkins v2.89.3 (Eclipse.org) and another Jenkins instance I use, at v2.60.3 (once enabled1).

    I've added this to a Maven mojo2 I use for pushing locally-edited config.xml changes back to the server.

    1 CSRF Protection
    2 Hudson job sync plugin

提交回复
热议问题