当前位置: 首页 > wzjs >正文

全国免费发布信息网seo短视频发布页

全国免费发布信息网,seo短视频发布页,小程序源码搭建,公司用于做网站的费用怎么做账原因 最近写点Jira自动化小工具,get都ok,进行工作流变更时跳出来这个: 403XSRF check failed费了半天劲查了资料,官方是这么描述这个特性的 A REST request is subject to origin CSRF checks if the following conditions are …

原因

最近写点Jira自动化小工具,get都ok,进行工作流变更时跳出来这个:

403XSRF check failed

费了半天劲查了资料,官方是这么描述这个特性的

A REST request is subject to origin CSRF checks if the following conditions are met:
1、the request is a POST request (the http verb is POST)
2、the request is from a known browser
3、the request is sending a content-type which is not one of the following
application/x-www-form-urlencoded
multipart/form-data
text/plain
empty or not specified
When an untrusted origin attempts to send a request that meets the conditions specified above it will be blocked and a log entry similar to the following should be present in your application’s log file:
2015-09-01 17:25:46.530585500 2015-09-01 07:25:46,530 ajp-nio-127.0.0.104-8009-exec-23 WARN anonymous 1045x1465x1 sibktb 127.0.0.1 /rest/auth/latest/session [c.a.p.r.c.security.jersey.XsrfResourceFilter] Additional XSRF checks failed for request: https://example.domain/rest/auth/latest/session , origin: https://another-origin.domain , referrer: null , credentials in request: true , allowed via CORS: false}}

说人话就是你想提交Post请求进行变更就会出现,他觉得你这个来源不可信,所以拒绝你变更数据。查了一堆资料说啥添加以下请求头就能绕过:

X-Atlassian-Token: no-check

反正对我本人是没生效,改成nocheck也一样。

解决方案

其实解决方案也挺简单,他不是不信任你的来源么,你指定Origin即可通过。
比如Jira地址为my.jira.com

request.header("Origin","http://my.jira.com");

代码即可正常运行。

参考资料

cross-site-request-forgery-csrf-protection-changes-in-atlassian-rest


文章转载自:

http://Ta7GooQd.tntbs.cn
http://SKAEZyMt.tntbs.cn
http://FGaPlSEj.tntbs.cn
http://gSWYwX3e.tntbs.cn
http://mBSn4UNA.tntbs.cn
http://7naxyCVs.tntbs.cn
http://eK3xWAwL.tntbs.cn
http://TtEq3jGj.tntbs.cn
http://L3DgyHA6.tntbs.cn
http://IgDd8ig4.tntbs.cn
http://iOKJSQsL.tntbs.cn
http://5k1vxUFm.tntbs.cn
http://Ud4fzeh1.tntbs.cn
http://eZ196JaN.tntbs.cn
http://uxVXtT1a.tntbs.cn
http://GCAlWXGL.tntbs.cn
http://rPG4foqK.tntbs.cn
http://nPDwNiIW.tntbs.cn
http://7VOUH9Ab.tntbs.cn
http://CZodUQXI.tntbs.cn
http://tS80QTyo.tntbs.cn
http://Lx9h4OTq.tntbs.cn
http://mFMIMHRs.tntbs.cn
http://ysLgopDf.tntbs.cn
http://etvZBxTD.tntbs.cn
http://dVjBdlC6.tntbs.cn
http://HnNHON1A.tntbs.cn
http://b5ru01H3.tntbs.cn
http://ouwWYttP.tntbs.cn
http://MxcTZ2UQ.tntbs.cn
http://www.dtcms.com/wzjs/760293.html

相关文章:

  • 上海本地生活的网站手机系统网站有哪些
  • 中企动力网站建设 长春四川网站建设seo
  • 阿里云做外贸网站cocos2d-js可以做网站吗
  • 西安网站制作怎么联系电子商务网站建设开发文档
  • 网站404 模板宁波北京网站建设
  • 怎么做房地产网站优秀个人网站设计模板
  • 赣州网站建设哪家公司好管理咨询网站
  • 引用网站资料怎么注明php怎么做网站程序
  • 长宁区网站建设开发做外贸生意上哪个网站
  • 网站系统维护要多久微信小程序分销商城
  • 用狗做头像的网站专业做生鲜的网站好
  • 烟台网站建设公司地址无锡做网站价格
  • 宜昌seo优化网站seo优化运营
  • 网站网站制作服务本地扬中网站建设
  • 做网站推广要多少钱福建省建设厅官方网站
  • 企业门户网站开发源码域名转移影响网站访问吗
  • 网站地图分析工具网站建设项目概要设计方案
  • 哪里有免费的网站源码专业做网站安全的sine安
  • asp.net网站后台源码网站平台建设费计入什么科目
  • 怎么建网站快捷方式宁波企业网站建设
  • 自己建设网站需要花多少钱编辑公众号
  • 建设网站公司wordpress php 採集
  • 深圳网站平面设计网站首页布局自适应
  • 江苏网站建设制作波哥昆明网站建设
  • 手表官方网站中信建设有限责任公司在柬埔寨的建筑项目
  • ps最好用的素材网站广州做网站优化哪家专业
  • 河北seo网站开发网站开发的项目经验
  • 周到的网站建设可免费下载的简历模板
  • 泾川县建设局网站免费标志在线设计
  • 会议专属网站平台建设报价单如何添加百度指数