Cross domain issue for an pure HTML5 application on SAP Cloud Platform

简介: I have created an SAPUI5 application using SAP WebIDE and deployed it to SAP Cloud Platform as an HTML5 application. This is an pure HTML5 application, not an Java application or others.But when we got resources of the HTML5 application from another domain, there is an error message indicates cross

Date: Thursday, 4. May 2017 at 04:55

I have created an SAPUI5 application using SAP WebIDE and deployed it to SAP Cloud Platform as an HTML5 application. This is an pure HTML5 application, not an Java application or others.

But when we got resources of the HTML5 application from another domain, there is an error message indicates cross-domain issue as follow:

image.png


Actually I know it is the cross-domain issue. For a Java application on SAP CP, we could add ”Access-Control-Allow-Origin” header in sever settings (web.xml) to resolve the issue.

This is a known but unfortunate restriction.


相关文章
|
3月前
|
前端开发
SAP UI5 应用如何使用 iframe 嵌入其他 HTML 页面试读版
SAP UI5 应用如何使用 iframe 嵌入其他 HTML 页面试读版
33 0
|
7月前
|
JavaScript 前端开发 搜索推荐
SAP 电商云 footer 区域 Link Component HTML 源代码的详细讲解
SAP 电商云 footer 区域 Link Component HTML 源代码的详细讲解
70 0
|
7月前
|
SQL JSON 前端开发
SAP Restful ABAP Programming 和 HTML Over the wire 的一些对比
SAP Restful ABAP Programming 和 HTML Over the wire 的一些对比
54 0
|
8月前
|
Web App开发 前端开发 JavaScript
SAP UI5 应用 index.html 里定义的 data-sap-ui-theme 值的加载原理
SAP UI5 应用 index.html 里定义的 data-sap-ui-theme 值的加载原理
40 0
|
8月前
|
Web App开发 前端开发 JavaScript
SAP UI5 应用开发教程之九十八 - 从 viewId 这个属性谈起,聊聊 SAP UI5 的 HTML 源代码生成机制试读版
SAP UI5 应用开发教程之九十八 - 从 viewId 这个属性谈起,聊聊 SAP UI5 的 HTML 源代码生成机制试读版
42 0
|
Web App开发 开发者
SAP UI5 应用 index.html 里 data-sap-ui-resourceroots 指令的含义和作用
SAP UI5 应用 index.html 里 data-sap-ui-resourceroots 指令的含义和作用
SAP UI5 应用 index.html 里 data-sap-ui-resourceroots 指令的含义和作用
|
Web App开发 存储 XML
深入学习SAP UI5框架代码系列之三:HTML原生事件 VS UI5 Semantic事件
(0) SAP UI5应用开发人员了解UI5框架代码的意义 (1) UI5 module懒加载机制 (2) UI5 控件渲染机制 (3) HTML原生事件 VS SAP UI5 Semantic事件(本文) (4) UI5控件元数据实现细节 (5) UI5控件的实例数据实现细节 (6) UI5控件数据绑定的实现原理 (7) UI5控件数据绑定的三种模式:One Way,Two Way和OneTime实现原理比较 (8) UI5控件ID的生成逻辑 (9) UI5控件的多语言(国际化,Internationalization,i18n)支持的实现原理 (10) XML视图里的b
163 0
深入学习SAP UI5框架代码系列之三:HTML原生事件 VS UI5 Semantic事件
|
JavaScript 前端开发
利用ES6里标准化的JavaScript proxy对象拦截SAP C4C页面的HTML div原生操作
利用ES6里标准化的JavaScript proxy对象拦截SAP C4C页面的HTML div原生操作
117 0
利用ES6里标准化的JavaScript proxy对象拦截SAP C4C页面的HTML div原生操作
|
Web App开发 开发者
SAP UI5 应用 index.html 里 data-sap-ui-resourceroots 指令的含义和作用
SAP UI5 应用 index.html 里 data-sap-ui-resourceroots 指令的含义和作用
113 0
SAP UI5 应用 index.html 里 data-sap-ui-resourceroots 指令的含义和作用