Skip to content

Instantly share code, notes, and snippets.

@binux
Last active Jun 22, 2020
Embed
What would you like to do?
cross origin iframe
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<iframe src="sub_frame.html" width="640" height="480"></iframe>
<iframe src="https://httpbin.org/html" width="640" height="480"></iframe>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<h1>hello</h1>
<iframe src="https://httpbin.org/html" width="640" height="480"></iframe>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment