The SAP UI5 application we deployed to run in the local development environment 浏览器安全策略
cannot directly access the remote OData service due to the limitation. The reason is that our SAP UI5 application runs locally on localhost
this domain name, and the domain name of the OData service requested by the remote end, for example services.odata.org
, The two are not the same domain name. Due to the browser security policy, the browser rejects this 跨域的
HTTP access request.
The author's A set of step-by-step learning tutorials for SAP UI5 developers has introduced many different ways to solve the problems encountered in the local development of SAP UI5 applications 跨域问题
.