on 06-12-2014 5:46 AM
Hi Experts,
I am trying to call odata service by using
var oModel = new sap.ui.model.odata.ODataModel(
"proxy/http/#############:8000/sap/opu/odata/sap/ZUSERINFO_VER_SRV/",
true,"username","password");
and I am able to GET data from it in localhost. But when I deployed the application in the tomcat server on another system, I am not able to GET data from the service. Can anyone please tell me why I am not getting the data???
Thanks
Himadri
Hi,
Can you find out which error you are getting in Console?
I guess that you are getting Cross Origin Resource problem. If you get this error, disable the web security in chrome.
If not please mention the error which you got in console.
Thanks&Regards
Sridevi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thank you for your reply. The error I getting in the console
yes, you are getting Cross Origin Problem .So, you need to disable the web security for chrome.
Go to properties of chrome , and add this after path of chrome.
--disable-web-security
After this restart the chrome.
Please follow the below link for reference.
windows - Is it possible to run Chrome with and without web security at the same time? - Super User
Regards
Sridevi
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.