cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Cloud for Customer: HTML Mashup does not work ("refused to connect")

0 Likes
2,303

Dear experts,

for our Business Case we need to view a HTML Mashup with a Daily Ethanol Price in the Home Section of the C4C Tenant. This is because our sales people need the daily Ethanol Price. Therefore I added a new tile like in the screenshot and via Admin / Mashup Authoring I added the HTML Mashup, too.

The problem is, that the Mashup doesn't work properly (also have a look at the screenshot). It refuses to connect to the page, so that I don't get the Price chart.

Can you please help me to fix this?

Thanks in advance

Best regards

Benedikt

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member226
Employee
Employee

Hi,

When creating an HTML mashup in C4C, you are basically iframing an external web page with in c4c. So looking at your snapshot, it seems to me that external website(in this case https://markets.businessinsider.com/commodities/ethanol-price) do not allow iframing their content outside of their own domain.

You further verify that by opening the developer tools of the browser (press f12) and here you will find an error in the console which says "Refused to display in a frame because it set 'X-Frame-Options' to 'sameorigin'" that is because https://markets.businessinsider.com/commodities/ethanol-price is sending a response header which allows iframing within their own domain and you cannot influence this behaviour in c4c. For more please check this:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options

You need to looks for some alternative website in order pull the smae information and which allow to embed their content in external system(like c4c).

BR
Saurabh

0 Likes

Saurabh,

thank you very much 🙂 This really helped me out.

Best regards

Benedikt