on 09-09-2014 1:50 PM
We try to create an app which uses Netweaver OData services. When we test the application we get the error:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
I have searched on SDN and found a couple of solutions. However these solutions are too short (more like hints) and don't give the answers from the beginning to the end. I was not yet able to fix the problem.
Is there a complete solution available which describes the proper solution?
Regards, Paul Lauwers.
Application Engineer
IFF
Hi Paul,
You are getting this error in browser, because of the famously known "Same Origin Policy" security restrictions in browsers.
There are nemours solutions avaible for this, based on your enviroment,
1. Configuring Reverse proxy using Apache server,
2. Simple solution, which i use frequently for testing SAPUI applications, (which is restricted to Chrome browser and only for testing environment)
In Windows-- create a Chrome shortcut on your desktop.
Right-click - properties - Shortcut
Edit "target" path : (for eg)
"C:\Program Files\Google\Chrome\Application\chrome.exe" --args --disable-web-security
Thanks
Naveenraj.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
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.