on 09-22-2017 10:32 AM
Hi there,
I'm developing on SAP webIDE for SAP HANA, and I created 2 MTA projects, respectively with an SAPUI5 module and odata service mdoule inside.
Now I try to call cross-project odata service from my UI project:
<code>var myServiceUrl = "https://ld3923.wdf.sap.corp:51218/service.xsodata";
var categoryModel = new sap.ui.model.odata.v2.ODataModel({serviceUrl:myServiceUrl});
this.getView().setModel(categoryModel, "categoryModel");
but got an error saying "XMLHttpRequest cannot load https://ld3923.wdf.sap.corp:51218/service.xsodata/$metadata. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' is therefore not allowed access."
Anyone know where to add header "Access-Control-Allow-Origin": "*" for xsodata service response?
BR
Hoya
Issue fixed.
See : https://github.wdf.sap.corp/engagement-center/documentation/issues/54
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.