In this step, we set up the initial app without SAP Web IDE.
If you are working with another IDE or development environment than the SAP Web IDE, you can simply download the code from the Explored app in the Demo Kit under Worklist App - Step 1 and skip the wizard steps described in the previous step of this tutorial. The code contains a preconfigured application project that can be used as a starting point to develop the worklist app. You can deploy the downloaded application to a (local) Web server and call the webapp/test/testService.html file in your browser manually to start the app.
To access the real service, you would need to set up a proxy service that connects your app project deployed on a Web server to the remote service. Due to the so called same-origin policy browsers deny AJAX requests to service endpoints in case the domain/subdomain, protocol, or port differ from the app’s domain/subdomain, protocol, or port. Cross-origin resource sharing (CORS) allows to break out of these restrictions derived from the same-origin policy. With CORS the server and browser agree which cross-origin requests are allowed. Another way to bypass the same-origin policy is using a proxy on the same host of the app. To keep it simple, our app contains a test page to run the app with local mock data instead of retrieving the data from a real server hosted somewhere else. This way we won’t have any issues related to the same-origin policy of the browsers, as long as we run the app with our mock server.