Skip to Content
Jan 16 at 11:48 AM

CORS error while trying to setup Live connection between SAC and EWM (S4 HANA)

103 Views Last edit Jan 25 at 09:15 AM 2 rev

Hi Team,

We are trying to configure CORS live connection between SAC and EWM (S4HANA) .

We are getting Error access to XMLHttpRequest at 'https://<target-S4HANA>:44300/sap/bw/ina/GetServerInfo?sap-client=100' from origin ' https:<source-SAC> has been blocked by CORS policy:

Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

We have followed 2889975 - SAP BusinessObjects Live Data Connect and Google Chrome 80: connection failure and set parameter on server side as below.

Server-side solution

The server-side solution reverts to the previous behavior by explicitly setting the SameSite=None and Secure attribute to all cookies issued by the SAP system. This solution has different advantages:

Kindly advise if you have seen and resolved a similar issue.

Also note following supporting information:

1. Target portal is accessible in browser --- 'https://<target-S4HANA>:44300/sap/bw/ina/GetServerInfo?sap-client=100'

2. Browser version is Chrome Version 108.0.5359.125 (Official Build) (64-bit)

3. S4HANA kernel version. - SAP Kernal 785

4. CORS was configured using UCONCOCKPIT

We have followed below steps to configure CORS using UCONCOCKPIT as per the blog

Add SAP Analytics Cloud (SAC) to the HTTP whitelist.

Looking forward to response on this.