Jenkins页面操作提示 "No valid crumb was included in the request"
一、问题描述(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://issues.jenkins-ci.org/browse/JENKINS-12875
- http://en.wikipedia.org/wiki/Cross-site_request_forgery
- http://www.cnblogs.com/hyddd/archive/2009/04/09/1432744.html
文章来源: https://blog.csdn.net/ljj_9/article/details/70056466
最新文章
- iOS 键盘添加完成按钮,delegate和block回调
- [转]序列化悍将Protobuf-Net,入门动手实录
- Git之分支创建策略
- 微博java SDK介绍及使用说明
- 分享Windows Server 2012 R2的获取正版密钥方法
- 匿名类型(C# 编程指南)
- ASP.NET MVC ViewData/ViewBag 简单小结
- 限制波尔兹曼机(Restricted Boltzmann Machines)
- 借@阿里巴巴 耍了个帅——HTML5 JavaScript实现图片文字识别与提取
- 在MVC里使用 HttpContext.Response输出内容
- 据磁力链获得BT种子
- oracle 表查询(一)
- Auto Layout - BNR
- UTF-8的BOM含义
- 20175312 2018-2019-2 《Java程序设计》第2周学习总结
- deconvolution layer parameter setting
- win7下python2.6如何安装setuptools和pip
- npm 包 升降版本
- Excel:公式应用技巧汇总
- 高通 添加 cmdline
热门文章
- java中String StringBuilder StringBuffer比较和效率(性能)测试
- Synchronous and Asynchronous I/O [Windows]
- Linux Centos7(Mac)安装Docker
- javescrip内嵌样式与外联样式怎么做?
- vue2.x学习笔记(三十一)
- 通用权限管理系统组件 (GPM - General Permissions Manager)
- Vim Install-Could not get lock......
- 解决vue页面刷新或者后退参数丢失的问题
- java的++i和i++的分析
- Spring Cloud feign GET请求无法用实体传参的解决方法