You will have to deal with CORS – Cross-Origin Resource Sharing – if you develop Node.js Apps locally and want to access local microservices, for example an API service. To avoid CORS issues, you can configure your Apache.

Ubuntu, Apache, Node.js, MySQL, SAP ABAP, SAP UI5 …
You will have to deal with CORS – Cross-Origin Resource Sharing – if you develop Node.js Apps locally and want to access local microservices, for example an API service. To avoid CORS issues, you can configure your Apache.
If you use a proxy server for your local SAPUI5 development, then do not forget to adjust the rootURI of the mock server configuration as well. The rootURI of the mock server configuration must be exact the same as the data source uri of the manifest.json.
A proxy server is needed if you want to develop SAPUI5 Apps locally, e.g. in Visual Studio Code, and access a remote OData Service like Northwind OData Service. A node.js server adds CORS headers to the requests which come from a local running app.