https://github.com/stopsopa/iframes
https://github.com/stopsopa/iframes
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/stopsopa/iframes
- Owner: stopsopa
- Created: 2022-03-18T21:20:58.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-20T00:18:50.000Z (about 3 years ago)
- Last Synced: 2025-02-06T08:13:17.130Z (3 months ago)
- Language: HTML
- Size: 32.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# What for?
Purpose of this repo is demo that communication between parent and iframe can be done even if cross origin policay is in play
# Read more
- https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage#the_dispatched_event
- https://htmldom.dev/communication-between-an-iframe-and-its-parent-window/# Dev notes
```
# run as sudo -> sudo -i
cat <> /etc/hosts127.0.0.1 local.com
127.0.0.1 local2.comEEE
# git clone
# then enter main dirmake server
# visit in browser: http://local.com:4218/
# voila
```