Skip to content

the example js-trame cant work. addEventListener on iframe node contentwindow will be stop by CORS #1

Description

@ylwbl

Send message from js to trame is Ok, but when I try to send message from trame to js, it didn't work.
1703572970226
Maybe there's a problem in the example js-trame
1703573374205
it seems that postMessage in iframe should like that
window.parent.postMessage(message)
so at the outside, I can receive message like this:
window.addEventListener
or there is another way to solve this problems?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions