forked from MergeFi/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiframe-embed-test.html
More file actions
31 lines (31 loc) · 1.09 KB
/
Copy pathiframe-embed-test.html
File metadata and controls
31 lines (31 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>MergeFi clickjacking check (#50)</title>
</head>
<body>
<h1>MergeFi clickjacking / anti-embedding check</h1>
<p>
This page plays the role of a third-party site trying to iframe
MergeFi. With <code>X-Frame-Options: DENY</code> in place, the browser
must refuse to render the frame below — check the devtools console for
a "Refused to display '...' in a frame because it set
'X-Frame-Options' to 'deny'" message, and the frame area should stay
blank instead of showing the app.
</p>
<p>
Usage: <code>npm run build && npm start</code> in one terminal,
then open this file directly in a browser (<code>file://</code> is
fine — X-Frame-Options applies regardless of the parent's origin) and
edit the <code>src</code> below to match the port <code>npm start</code>
printed.
</p>
<iframe
src="http://localhost:3000/"
width="800"
height="500"
title="MergeFi (should be blocked)"
></iframe>
</body>
</html>