Detail about CSRF token fetch request

简介: Detail about CSRF token fetch request

Created by Jerry Wang, last modified on Jun 17, 2015

updateSecurityToken

bTokenHandling

x-csrf-token

oServiceData.securityToken

ODataModel._createBatchRequest

ODataModel.prototype.refreshSecurityToken


image.pngimage.pngWho has started this csrf token request? It is automatically done by oDataModel framework.image.pngNow we know that everytime an HTTP post request is sent, the token will be forced to fresh from backend.


So it means it will not be repeatedly called every time we select another item in navigation list.


image.pngimage.pngimage.pngimage.png

Created by Jerry Wang, last modified on Jul 22, 2015

  • updateSecurityToken
  • Security
  • Token
  • x-csrf-token
  • bTokenHandling
    以opportunity为例:image.png问题:this.bTokenHandling什么时候置为true?

在ODataModel的构造函数里。

image.pngimage.png

相关文章
|
5月前
|
存储 缓存 JSON
详解HTTP四种请求:POST、GET、DELETE、PUT
【4月更文挑战第3天】
13481 1
详解HTTP四种请求:POST、GET、DELETE、PUT
|
5月前
|
应用服务中间件 Apache
消息 Request method ‘POST‘ not supported
消息 Request method ‘POST‘ not supported
|
中间件 PHP
POST 419 ; message: “CSRF token mismatch.“, exception: “Symfony\Component\HttpKernel\Exception\HttpE
POST 419 ; message: “CSRF token mismatch.“, exception: “Symfony\Component\HttpKernel\Exception\HttpE
121 0
|
5月前
|
API
webclient在delete请求时携带request body
webclient在delete请求时携带request body
92 0
|
10月前
|
JSON 数据格式
axios.post请求出错:Request header field content-type is not allowed by Access-Control-Allow-Headers in……
axios.post请求出错:Request header field content-type is not allowed by Access-Control-Allow-Headers in……
|
存储 安全 前端开发
message“: “CSRF token mismatch
message“: “CSRF token mismatch
409 0
|
前端开发 JavaScript
ajax请求的重定向处理--Request header field x-requested-with is not allowed by Access-Control-Allow-Header
ajax请求的重定向处理--Request header field x-requested-with is not allowed by Access-Control-Allow-Header
452 0
|
前端开发 数据库
浅谈Ajax请求中的GET,POST,PUT,DELETE,PATCH,OPTIONS
浅谈Ajax请求中的GET,POST,PUT,DELETE,PATCH,OPTIONS 在日常的前后端交互,数据请求中最长用的就是Ajax,当然在面试时也经常会被问道请求的方式有哪些?分别什么不同?一般我们都会回答GET请求和POST请求,但其实在后端配置接口时,请求方式不仅这两种,还会有PUT,DELETE,PATCH等,当然我们在开发的时候偶尔也会遇到接口要求使用这几种方式进行请求,下面我们就来讲一讲这几种方式分别有什么不同。 首先先要了解http定义与服务器进行交互的方式,其中基本的有GET,POST,PUT,DELETE,PATCH是后增的方式。同时还要知道URL代表的是 统一资源
浅谈Ajax请求中的GET,POST,PUT,DELETE,PATCH,OPTIONS
|
JSON 前端开发 NoSQL
Laravel表单篇-Request、Session、Response、Middleware
Laravel表单篇-Request、Session、Response、Middleware
130 0
Laravel表单篇-Request、Session、Response、Middleware