Cross domain problem using iframe html component

On my page “chabad” I save data localStorage.setItem then I change the src of #html component to a different domain url.
Then in the iFrame my #html i press a button which has a return call at the end to my Domain “chabad/thanks” and the page is not shown in my #html and localStorage.getItem is _null.
Adding _self is default so it should have worked or I need to add this attribute explicitly?
Should i use _parent? I must be missing something?
The problem is that its a cross domain were the return call is done on the different domain

How have you setup your page to do all this? Screenshots and code used would be a good help etc.

So you doing something on your Wix page after which you have data saved through Wix Storage and you change the src of the html component to another URL.

If you are using a html component on your page and doing something within that and wanting to return something to the Wix page itself, then you need to be passing that data from the html component and back to the page so that Wix can use it.

You can see how to pass data from the Wix page to the html component and from the html component to the Wix page here.
https://www.wix.com/corvid/reference/$w.HtmlComponent.html
https://support.wix.com/en/article/corvid-working-with-the-html-element

Also, with regards to your src, is this URL a HTTPS one?
https://www.wix.com/corvid/reference/$w.HtmlComponent.html#src

Plus, note that any iframe is sandboxed on a free site and it will only work fully on a paid site.
https://support.wix.com/en/article/using-iframes-to-display-visible-content-on-your-site

Finally, if you use the search function in this forum, you can find other previous posts that might help you with with the code already given in a sample etc.

Like a few here.
https://www.wix.com/corvid/forum/community-discussion/set-the-src-of-an-html-box-in-page-code
https://www.wix.com/corvid/forum/community-discussion/dynamic-page-with-html-embedded-with-url-from-database
https://www.wix.com/corvid/forum/community-discussion/help-the-embed-video-code-for-the-database

I change the src of #html to https and no code is done on #html it just shows the different domain page on my #html which have a button that calls a page on my domain.
The blue box is the #html and the green button is on the site on the other domain and all this is in my page i don’t want to leave my page!
By pressing the green button that site will call my domain.
My page is chabadof kasar.wix site.com/chabad and the return call is …/chabad/thanks
If i type on a different tab the return url the localStorage.getItem works but that is not a cross domain.
You can see the site
chabadofkasar.wixsite.com/chabad
Local.Storage.getItem is available on the same domain even on different page.