Commit e5822190 authored by guozhipeng's avatar guozhipeng

下载请求头

parent 713606df
......@@ -600,6 +600,8 @@ sap.ui.define(
// 设置请求方法和 URL
xhr.open('POST', this.baseUrl + url, true);
xhr.setRequestHeader('Content-type', 'application/json');
xhr.setRequestHeader('language', that.language);
xhr.setRequestHeader('x-csrf-token', that.getStorage().get("csrfToken"));
/*xhr.setRequestHeader('appKey', appKey);*/
// 添加回调函数,当请求完成时获取 PDF 文件流
xhr.onload = function() {
......@@ -719,6 +721,8 @@ sap.ui.define(
// 设置请求方法和 URL
xhr.open('POST', this.baseUrl + url, true);
xhr.setRequestHeader('Content-type', 'application/json');
xhr.setRequestHeader('language', that.language);
xhr.setRequestHeader('x-csrf-token', that.getStorage().get("csrfToken"));
/*xhr.setRequestHeader('appKey', appKey);*/
// 添加回调函数,当请求完成时获取 PDF 文件流
xhr.onload = function() {
......@@ -796,6 +800,8 @@ sap.ui.define(
// 设置请求方法和 URL
xhr.open('POST', this.baseUrl + url, true);
xhr.setRequestHeader('Content-type', 'application/json');
xhr.setRequestHeader('language', that.language);
xhr.setRequestHeader('x-csrf-token', that.getStorage().get("csrfToken"));
/*xhr.setRequestHeader('appKey', appKey);*/
// 添加回调函数,当请求完成时获取 PDF 文件流
xhr.onload = function() {
......@@ -2839,6 +2845,8 @@ sap.ui.define(
// 设置请求方法和 URL
xhr.open('POST', this.baseUrl + url, true);
xhr.setRequestHeader('Content-type', 'application/json');
xhr.setRequestHeader('language', that.language);
xhr.setRequestHeader('x-csrf-token', that.getStorage().get("csrfToken"));
/*xhr.setRequestHeader('appKey', appKey);*/
// 添加回调函数,当请求完成时获取 PDF 文件流
xhr.onload = function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment