https://github.com/admataz/example-postmessage
A quick example illustrating javascript's postMessage API to talk between frames from different domains
https://github.com/admataz/example-postmessage
Last synced: 6 months ago
JSON representation
A quick example illustrating javascript's postMessage API to talk between frames from different domains
- Host: GitHub
- URL: https://github.com/admataz/example-postmessage
- Owner: admataz
- License: mit
- Created: 2016-07-08T13:14:25.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-08T13:23:21.000Z (about 10 years ago)
- Last Synced: 2025-05-27T01:07:53.895Z (about 1 year ago)
- Language: HTML
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# example-postmessage
A quick example illustrating javascript's postMessage API to talk between frames from different domains
## Try it out:
- clone the repos
- in command line `cd` to the root of the repos
- `npm install` installs the [node-static](https://www.npmjs.com/package/node-static) local server
- `npm start` starts a local server at port `8080`
- go to [http://localhost:8080](http://localhost:8080) to see the demo
**this code is purely for illustration and learning purposes - if you are doing anything requiring security or PCI compliance - this is a method, but not a full solution!!!**