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

SmartEdit settings are not applied when it's not on the same domain with storefront (cross origin)

Former Member
0 Likes
1,343

Hi all!

I've faced with the issue on a cluster.
We have storefront on first domain and Hybris backoffice/hac/smartedit on another one.

The issue:
When I tried to change settings (e.g. Content Catalog, Product Catalog, Date) in SmartEdit, it's are not applied. But I see valid response with valid key/value pairs for the requests.

BUT: It's not reproduced when the storefront and backoffice/hac/smartedit on the same domain.
And in case when I refresh the page in a browser I can see applied settings.

After navigation form Homepage to Gallery Page and preview settings are changed, /previewServlet request is not sent. Just /preview request has sent.

Pay attention that I followed the instruction below:

https://help.sap.com/viewer/86dd1373053a4c2da8f9885cc9fbe55d/6.7.0.0/en-US/143300e1bda8406cb089179c5...

Do anyone can help me or faced with the same issue?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

I've found root cause. Loot at:

web/app/smarteditcontainer/services/iFrameManager.js:249

There is a comment:

check failing HTML only if same origin to prevent CORS errors. 
if location to reload in new experience context is different from homepage, one will have to first load the home page in preview mode and then access the location without preview mode

Answers (0)