on 06-08-2021 3:14 PM
Dear SAP Community,
I have an issue with one of our customers who wants to work with the SAP Analytics Cloud.
The issue is that they can only use old Chrome/Edge Versions to open a Live Connection to the on-premise HANA DB.
They want a server-side solution so that all modern browsers can work with the SAC.
I have installed a new HANA DB (SPS05) with xsa cockpit/webide and then installed the HAA:
SAP Development Tools (ondemand.com) => xsahaa-onprem-1.6.1-XSACHAADP06_1.zip (sha1)
I was following this blog post for the setup of the user and the HAA:
From zero to Analytics pt4: Installing the HANA Analytics Adapter | SAP Blogs
We have tested the calculation views with old browsers and everything works as intended.
Trying with an up2date chrome browser yields following errors:
And in the console:
The solution to this problem is to set the SameSite to None; Secure but I could not find a way to change this parameter with the Hana Analytics Adapter App.
There are guides for other implementation methods like the internal HANA Webdispatcher:
2887651 - Issues with SameSite cookie handling - SAP ONE Support Launchpad
How to fix Google Chrome SameSite Cookie issue with SAC and HANA XS | SAP Blogs
But sadly those solutions did not work with the XSA Runtime as the same issue continues.
Example on old chromium browser:
And then the customer can select the data source to work with.
I also tried to set the COOKIES Parameter in the environment but it didn't work out - was just trying my luck!
Of Course we also considered a browser-side solution but that also didn't work out:
*Please note: As of Google Chrome and Microsoft Edge Release 91+ the option to disable these flags is no longer possible as the required flags have now been removed
Thanks in advance!
With best regards and stay safe,
Lazar Lukic
Hi Lazar,
Not sure if you have got the answer from SAP Support. But I faced the same issue and finally found the fix.
Essentially the steps for XSA is similar to CF:
SameSite Cookie Configuration for Live Data Connections - SAP Help Portal
In your case, you will first modify mtad.yml in your downloaded mtar for CORS and SameSite according to this page.
SameSite rewrite is actually handled by @sap/approuter 6.7.2+, so two steps are involved:
1. Change package.json to update dependency:
"dependencies": { "@sap/approuter": "^6.7.2" },
2. Rebuild node_modules directory using npm, because it is already mtar, so changing package.json doesn't automatically update node_modules any more.
I don't think the paramters that you were tuning will work, as apparently XS Advanced should have a different Web Dispatcher under /hana/shared/<SID>/xs/router/webdispatcher.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thomas!
I have opened a sap incident a couple of weeks ago but to this day it only went back and forth without any meaningful insight.
Your solution was the right solution! Thank you!
It was quite a challenge for me to rebuild the npm packages as I have zero experience with nodejs and the underlying structure but I managed nicely by trial and error.
For anyone needing a little bit more insight - here is a general overview of my steps:
I hope that people find this post who are in help of the same problem.
SAP should definitly make a launchpad article about this as that was the first place I looked for a solution.
I wish you all the best Thomas!
Lazar
User | Count |
---|---|
82 | |
9 | |
9 | |
7 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.