post-robot icon indicating copy to clipboard operation
post-robot copied to clipboard

Not working on newer versions of Google Chrome?

Open deathg0d opened this issue 4 years ago • 3 comments

Post robot on a cross domain iframe does not seem to be working on newer versions of Chrome anymore. It works fine on firefox.

Code for listener:

In html:
<iframe id="deferredIframe" src="http://anotherdomain/url" class="is-hidden" src="about:blank" />

In js:
postRobot.on('getInfo', { window: deferredIframe.contentWindow }, function(event) {
    console.log(event.data)
    ....

the listener page has an iframe with a link to another domain that run a post robot send function:

inside http://anotherdomain/url:

postRobot
         .send(window.parent, "getInfo", { ... data ... })
         .then(function(event) {
            console.log('cross domain transfer successful', event.data);
         })
         .catch(function(err) {
            ...
         });

deathg0d avatar Feb 23 '21 21:02 deathg0d

Just to add to the issue. This is working fine for subdomains. However, if the domains are completely different it does not work.

deathg0d avatar Apr 21 '21 09:04 deathg0d

Is this still an issue?

jasan-s avatar Jun 09 '21 23:06 jasan-s

yes :(

deathg0d avatar Jun 10 '21 09:06 deathg0d