Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working on newer versions of Google Chrome? #92

Open
deathg0d opened this issue Feb 23, 2021 · 3 comments
Open

Not working on newer versions of Google Chrome? #92

deathg0d opened this issue Feb 23, 2021 · 3 comments

Comments

@deathg0d
Copy link

deathg0d commented Feb 23, 2021

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
Copy link
Author

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

@jasan-s
Copy link

jasan-s commented Jun 9, 2021

Is this still an issue?

@deathg0d
Copy link
Author

yes :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants