jenkins升级导致csrf问题报错403
问题:由于将jenkins由2.204升级到2.249,调用接口报错,错误如下2020-10-29 06:11:32.708+0000 [id=9]WARNINGhudson.security.csrf.CrumbFilter#doFilter: Found invalid crumb 62600442318862ac61c4c41c1f5de02c60b5de666a13a04d1212be85
·
问题:
由于将jenkins由2.204升级到2.249,调用接口报错,错误如下
2020-10-29 06:11:32.708+0000 [id=9] WARNING hudson.security.csrf.CrumbFilter#doFilter: Found invalid crumb 62600442318862ac61c4c41c1f5de02c60b5de666a13a04d1212be85c8e64a70. If you are calling this URL with a script, please use the API Token instead. More information: https://jenkins.io/redirect/crumb-cannot-be-used-for-script
2020-10-29 06:11:32.709+0000 [id=9] WARNING hudson.security.csrf.CrumbFilter#doFilter: No valid crumb was included in request for /job/build-tcpjw-sso-uaa-web-master-local-prod-paas/buildWithParameters by admin. Returning 403.
由于报错推测是安全问题引起,应该是csrf问题,查看更新日志,如下
解决方法如下:
1、方法一,未验证
2、方法二、已验证
2.1 安装插件Strict Crumb Issuer
2.1 配置插件
参考:
https://www.jenkins.io/changelog-stable/
https://stackoverflow.com/questions/44711696/jenkins-403-no-valid-crumb-was-included-in-the-request
更多推荐
已为社区贡献1条内容
所有评论(0)