Allow postMessage communication
See original GitHub issueIt’d be great to be able to make use of HTML’s postMessage
API to enable cross origin comms between the iFrame and the parent page. Particularly useful for the use of a lot of Payment forms where you need to securely pass some info between your page and the iFrame.
Might require some re-tooling to work with DOM and iFrame loading. Perhaps it could be an option in the onLoad function?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Window.postMessage() - Web APIs | MDN
The window.postMessage() method safely enables cross-origin communication between Window objects; e.g., between a page and a pop-up that it ...
Read more >Cross-window communication - The Modern JavaScript Tutorial
The postMessage interface allows windows to talk to each other no matter which origin they are from. So, it's a way around the...
Read more >How do you use window.postMessage across domains?
postMessage is to allow safe communication between windows/frames hosted on different domains, but it doesn't actually seem to allow that in Chrome.
Read more >Cross-Origin Communication with postMessage - Pine
With postMessage(), you don't need similar protocol, host or port to send a message to other domains code. Using this function, you can...
Read more >Using JavaScript and window.postMessage() - In Plain English
The window.postMessage() method safely enables cross-origin communication between Window objects; e.g., between a page and a pop-up that it ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
All right, I’ll fix this. 😃
ons. 17. apr. 2019 kl. 01:08 skrev Juan Carlos Valerio < notifications@github.com>:
– Mvh, Sven Anders Robbestad http://www.robbestad.com http://twitter.com/#!/svenardocom
All right, will look at this next!