当前位置:网站首页>SAP ui5 beginner tutorial 25 - using proxy server to solve the cross domain problem of SAP ui5 application accessing remote OData service trial version

SAP ui5 beginner tutorial 25 - using proxy server to solve the cross domain problem of SAP ui5 application accessing remote OData service trial version

2022-06-25 05:46:00 JerryWang_ WangZiXi

One suit SAP UI5 A step-by-step learning tutorial for beginners

Tutorial directory

explain

Jerry from 2014 To join in SAP Chengdu Research Institute CRM Fiori After that, the development team began to contact SAP UI5, Once in the SAP Communities and “ Wang Zixi ” There are many articles on WeChat official account SAP UI5 Working principle and source code analysis article .

stay Jerry This article Yes SAP UI5 A novice who knows nothing , Which materials are better to start with ? It was mentioned that ,Jerry Also from the SAP UI5 Rookies come all the way , Knowing that only ABAP Developers with development background , towards SAP UI5 It is not easy to transform the development field , So I designed this job in my spare time SAP UI5 A tutorial for beginners , Develop a complete SAP UI5 Application process , Split into several steps , Make every effort to , Cover all the knowledge points involved in . These knowledge points may not be like mine UI5 The source code analysis series is so in-depth , But try to be easy to understand , Easy SAP UI5 Beginners understand .

The source code for each step of this tutorial , All stored in my Github On , Use folders separately 01,02,03 Wait to identify .

Each step is based on the previous step , Added several new features . Suggest zero basis or to SAP UI5 Beginners who know little , Learn step by step from the first step in order , Download the code locally , With the text explanation of the tutorial , Do it yourself , To deepen understanding .

If you have any questions about each step of the tutorial , Welcome to give me comments in the corresponding step article of the tutorial , Leave a message .

In the previous article in this tutorial :SAP UI5 Tutorial for beginners - How to use OData Data model We are trying to run locally SAP UI5 application (localhost:8080) in , Access remote OData service https://services.odata.org/V2..., Cross domain access related errors will be encountered :

Current step 24 The solution given is , Use chrome.exe Start parameter of --disable-web-security, Disable its security policy check when it comes .

This article introduces another method of using a locally erected proxy server , It can also avoid the cross domain error .

This article uses SAP UI5 Application source code , Same step 24 The difference is very small , Added a proxy server implementation , Located in file proxy.js in .

The detailed steps as follows

原网站

版权声明
本文为[JerryWang_ WangZiXi]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202201723507393.html