一、问题描述(Problem Description):

在jenkins中创建新任务时候选择“拷贝已存在任务”,点击OK,跳转到下一步时候弹出如下错误信息:"No valid crumb was included in the request"

jenkins new job -> copy existing job -> click OK -> "No valid crumb was included in the request"

jenkins 填写构建参数,点击“BUILD”,提示: "No valid crumb was included in the request"

二、运行环境(Environment):

apache + jboss-as-7.1.1.Final,Windows XP SP3,jdk 1.6.0_33

三、错误原因(Reason):

jenkins在http请求头部中放置了一个名为.crumb的token。在使用了反向代理,并且在jenkins设置中勾选了“防止跨站点请求伪造(Prevent Cross Site Request Forgery exploits)”之后此token会被转发服务器apache/nginx认为是不合法头部而去掉。导致跳转失败。

The problem is that jenkins stores its' csrf token in a http header called '.crumb', AFAIK headers must only contain alphanumerics and dashes, and apache/nginx will remove invalid headers from the request (unless configured not to).

四、解决方案(Solution):

1.在apache/nginx中设置ignore_invalid_headers,或者:

2.在jenkins全局安全设置中取消勾选“防止跨站点请求伪造(Prevent Cross Site Request Forgery exploits)”。

1.Set ignore_invalid_headers in your apache/nginx server, or:

2.Uncheck "Prevent Cross Site Request Forgery exploits" in jenkins global security settings.

参考资料(References)

文章来源: https://blog.csdn.net/ljj_9/article/details/70056466

最新文章

  1. iOS 键盘添加完成按钮,delegate和block回调
  2. [转]序列化悍将Protobuf-Net,入门动手实录
  3. Git之分支创建策略
  4. 微博java SDK介绍及使用说明
  5. 分享Windows Server 2012 R2的获取正版密钥方法
  6. 匿名类型(C# 编程指南)
  7. ASP.NET MVC ViewData/ViewBag 简单小结
  8. 限制波尔兹曼机(Restricted Boltzmann Machines)
  9. 借@阿里巴巴 耍了个帅——HTML5 JavaScript实现图片文字识别与提取
  10. 在MVC里使用 HttpContext.Response输出内容
  11. 据磁力链获得BT种子
  12. oracle 表查询(一)
  13. Auto Layout - BNR
  14. UTF-8的BOM含义
  15. 20175312 2018-2019-2 《Java程序设计》第2周学习总结
  16. deconvolution layer parameter setting
  17. win7下python2.6如何安装setuptools和pip
  18. npm 包 升降版本
  19. Excel:公式应用技巧汇总
  20. 高通 添加 cmdline

热门文章

  1. java中String StringBuilder StringBuffer比较和效率(性能)测试
  2. Synchronous and Asynchronous I/O [Windows]
  3. Linux Centos7(Mac)安装Docker
  4. javescrip内嵌样式与外联样式怎么做?
  5. vue2.x学习笔记(三十一)
  6. 通用权限管理系统组件 (GPM - General Permissions Manager)
  7. Vim Install-Could not get lock......
  8. 解决vue页面刷新或者后退参数丢失的问题
  9. java的++i和i++的分析
  10. Spring Cloud feign GET请求无法用实体传参的解决方法