Skip to content

Commit

Permalink
Add a harness for testing cross origin iframes
Browse files Browse the repository at this point in the history
  • Loading branch information
philc committed Feb 4, 2024
1 parent 4fe5484 commit 38278b8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions test_harnesses/cross_origin_iframe.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
<title>Cross origin iFrame</title>
<style type="text/css" media="screen">
body {
background-color: black;
color: #999;
height: 4000px;
}

iframe {
width: 800px;
height: 400px;
border: 2px solid green;
}
</style>
</head>

<body>
Iframe from a different origin as its parent:<br />
<iframe src="https://example.com" />

</body>

</html>

0 comments on commit 38278b8

Please sign in to comment.