Implement proxied cross-origin iframe rendering

This commit is contained in:
MoyuScript
2017-09-25 22:53:09 +08:00
parent f84cdb80b3
commit f20dbe8c8e
6 changed files with 139 additions and 76 deletions

View File

@ -2,12 +2,9 @@
<html>
<head>
<title>cross-origin iframe test</title>
<script>
var h2cOptions = {proxy: "http://localhost:8082"};
</script>
<script type="text/javascript" src="../test.js"></script>
</head>
<body>
<iframe src="https://html2canvas.hertzen.com/" width="800" height="800"></iframe>
<iframe src="http://localhost:8081/assets/iframe/frame1.html" width="800" height="800"></iframe>
</body>
</html>