UNPKG

1.01 kBHTMLView Raw
1<!DOCTYPE html>
2<html>
3<head>
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <meta name="description" content="X-Frame-Bypass: Web Component extending IFrame to bypass X-Frame-Options: deny/sameorigin">
7 <title>X-Frame-Bypass Web Component Demo</title>
8 <style>
9 html, body {
10 margin: 0;
11 padding: 0;
12 height: 100%;
13 overflow: hidden;
14 }
15 iframe {
16 display: block;
17 width: calc(100% - 40px);
18 height: calc(100% - 40px);
19 margin: 20px;
20 }
21 img {
22 position: absolute;
23 top: 0;
24 right: 0;
25 }
26 </style>
27 <script src="https://unpkg.com/@ungap/custom-elements-builtin"></script>
28 <script src="x-frame-bypass.js" type="module"></script>
29</head>
30<body>
31 <iframe is="x-frame-bypass" src="https://news.ycombinator.com/"></iframe>
32 <a href="https://github.com/niutech/x-frame-bypass"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
33</body>
34</html>