on 05-24-2017 9:35 AM
Dear All,
I hope you are fine
My problem is that everything is working well in the WEB IDE but after the deployment on the Fiori Launchpad Odata is not working
I am doing the example of sales order and business partner of the SAPUI5 The Comprehensive Guide
Could you please explain why on the fiori launchpad the odata is not reachable ?
Kumar Gaurav is having the same issue here : https://blogs.sap.com/2015/05/02/flphana-cloud-platform-building-managing-applications-for-fiori-lau.../
I sent a mail to meni.tito@sap.com who seems to have the solution
I will post it here if i have it. Any help would be very appreciate until then
Thank you for your help
I opened CMD and i past this command "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir="C:\chrome"
Chrome opened but when i passed the URL the problem is still the same 404 not found
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The disable-web-security flag doesn't work in latest chrome. You need to use an older version of chrome, if overriding CORS is a must for you.
We're using 46.0.2490.80 for the same purpose
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK i found here how to launch chrome in web security disabled mode but the problem is still there : 404 not found
http://www.thegeekstuff.com/2016/09/disable-same-origin-policy/
Thank you for your help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your replies
The chrome security option seems to be existing only on Linux no as i am seeing command --disable-web-security ? I am on Windows, could you please guide me on the options ? I did not find it.
Here is the neo-app
The thing is neo-app is used only by WEB IDE no ?
{
"welcomeFile": "/webapp/index.html",
"routes": [
{
"path": "/resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/resources",
"version": "1.44.7"
},
"description": "SAPUI5 Resources"
},
{
"path": "/test-resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/test-resources",
"version": "1.44.7"
},
"description": "SAPUI5 Test Resources"
},
{
"path": "/destinations/ES4",
"target": {
"type": "destination",
"name": "ES4"
},
"description": "ES4"
}
],
"sendWelcomeFileRedirect": true,
"cacheControl": [
{
"directive": "private",
"maxAge": 0,
"path": "**.html"
},
{
"directive": "private",
"maxAge": 0,
"path": "sap-ui-cachebuster-info.json"
},
{
"directive": "public",
"maxAge": 31536000
}
]
}
Thank you for your help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Acyl,
Would you mind attaching your neo-app.json file please.
Best regards
Frank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You probably face the cross origin resource sharing issue. Web IDE gets around the cross origin resource sharing issue via usage of the destination created on SCP for connecting to the ES4 system. In case of your Fiori launchpad which would run on an on-premise gateway system the call to the GWSAMPLE_BASIC service on ES4 is considered as a cross domain call since from your on-premise gateway domain you are calling a resource from another domain. Have you tried running Chrome in web security disabled mode?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.