on 07-06-2015 8:09 AM
I have successfully performed a GET request using POSTMAN CLIENT to obtain response from backend.This I have done through the port80 of the Reverse Proxy(Apache). I have followed all the steps given in the following link:-
Now I am trying to check whether I can consume the service using SAPUI5. But I am facing the following errors.Please help.The code snippet is also given below:-
In the screenshot the error along with the code snippet is attached.Also attached is the response obtained via postman client.
So here also I am just trying to get the response and then display it.But I am facing the mentioned errors.Please help.
This seems to be a 'Same Origin Policy' issue.
There are many threads available in SAP UI5 forum on this issue.
you can disable web security in Chrome and try it once.
javascript - Disable same origin policy in Chrome - Stack Overflow
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Atanu,
Thanks for the help.I went through the link and then opened cmd and moved into the folder where chrome.exe is and tried to disable web security.
C:\Program Files (x86)\Google\Chrome\Application>chrome.exe --disable-web-security
and then tried to run the program,but I am still facing the same issue.I am unable to understand how this metadata tag is getting appended with the url.
Please help.Also find attached the error screenshot.
The metadata is added by the framework. When you create a model the framework fires a call for metadata , this is perfectly fine.
Now it looks like, the same origin issue is solved. Now you can see 'GET' calls instead of "OPTIONS" (as per your last screenshot)
To check the current error, expand the error in Chrome debugger by clicking on the small triangle on the left
Hi Atanu/Ekansh,
If i try to hit the url thorugh browser then I get the error Application id is not provided,which is correct.
So can you all tell me how to attach headers with url in browser.
I also tried to use the http://services.odata.org/V3/Northwind/Northwind.svc url but found the same issues.
I modified my code and the snapshot is attached .But I am facing other issues now.Please help.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.