Skip to content

Commit 26191e5

Browse files
committed
Updated layout
1 parent c5316d1 commit 26191e5

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

security-header/src/main/webapp/csp2/protected.jsp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<head>
44
<title>Content Security Policy Level 2: Protected</title>
55
</head>
6-
<body style="background-color: deeppink">
6+
<body>
77
<iframe src="protectedForm.jsp" id="form" style="border: 0; width: 100%; height: 100%">
88
</iframe>
9-
<div style="position: absolute; top: 0; left: 0; width: 50%; height: 50%; border: 5pt solid orange;">
9+
<div style="position: absolute; top: 0; left: 0; width: 50%; height: 50%; background-color: orange; opacity: 0.3;">
1010
<form name="fakeLoginForm" action="FakeServlet" method="post">
1111
<div style="position: absolute; top: 30px; left: 190px;">
1212
<input style="width: 175px; height: 25px;" type="text" name="username" id="username"/>
@@ -15,8 +15,8 @@
1515
<div style="position: absolute; top: 72px; left: 190px;">
1616
<input style="width: 175px; height: 25px;" type="password" name="password" id="password"/>
1717
</div>
18-
<div id="hiddenButton" style="cursor: pointer; position: absolute; top: 105px; left: 275px; z-index: 1; width: 90px; height: 40px; border: 5pt solid red;">
19-
<input type="submit" value="Send" style="position: relative; top: 5px; left: 5px; width: 80px; height: 30px; cursor: pointer; "/>
18+
<div id="hiddenButton" style="cursor: pointer; position: absolute; top: 110px; left: 280px; z-index: 1; width: 95px; height: 45px;">
19+
<input type="submit" value="Send" style="position: relative; top: 5px; left: 5px; width: 85px; height: 30px; cursor: pointer; "/>
2020
</div>
2121
</form>
2222
</div>

security-header/src/main/webapp/csp2/unprotected.jsp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<head>
44
<title>Content Security Policy Level 2: Unprotected</title>
55
</head>
6-
<body style="background-color: deeppink">
6+
<body>
77
<iframe src="unprotectedForm.jsp" id="form" style="border: 0; width: 100%; height: 100%">
88
</iframe>
9-
<div style="position: absolute; top: 0; left: 0; width: 50%; height: 50%; border: 5pt solid orange;">
9+
<div style="position: absolute; top: 0; left: 0; width: 50%; height: 50%; background-color: orange; opacity: 0.3;">
1010
<form name="fakeLoginForm" action="FakeServlet" method="post">
1111
<div style="position: absolute; top: 30px; left: 190px;">
1212
<input style="width: 175px; height: 25px;" type="text" name="username" id="username"/>
@@ -15,8 +15,8 @@
1515
<div style="position: absolute; top: 72px; left: 190px;">
1616
<input style="width: 175px; height: 25px;" type="password" name="password" id="password"/>
1717
</div>
18-
<div id="hiddenButton" style="cursor: pointer; position: absolute; top: 105px; left: 275px; z-index: 1; width: 90px; height: 40px; border: 5pt solid red;">
19-
<input type="submit" value="Send" style="position: relative; top: 5px; left: 5px; width: 80px; height: 30px; cursor: pointer; "/>
18+
<div id="hiddenButton" style="cursor: pointer; position: absolute; top: 110px; left: 280px; z-index: 1; width: 95px; height: 45px;">
19+
<input type="submit" value="Send" style="position: relative; top: 5px; left: 5px; width: 85px; height: 30px; cursor: pointer; "/>
2020
</div>
2121
</form>
2222
</div>

security-header/src/main/webapp/x-frame-options/protected.jsp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<head>
44
<title>X-Frame-Options: Protected</title>
55
</head>
6-
<body style="background-color: deeppink">
6+
<body>
77
<iframe src="protectedForm.jsp" id="form" style="border: 0; width: 100%; height: 100%">
88
</iframe>
9-
<div style="position: absolute; top: 0; left: 0; width: 50%; height: 50%; border: 5pt solid orange;">
9+
<div style="position: absolute; top: 0; left: 0; width: 50%; height: 50%; background-color: orange; opacity: 0.3;">
1010
<form name="fakeLoginForm" action="FakeServlet" method="post">
1111
<div style="position: absolute; top: 30px; left: 190px;">
1212
<input style="width: 175px; height: 25px;" type="text" name="username" id="username"/>
@@ -15,8 +15,8 @@
1515
<div style="position: absolute; top: 72px; left: 190px;">
1616
<input style="width: 175px; height: 25px;" type="password" name="password" id="password"/>
1717
</div>
18-
<div id="hiddenButton" style="cursor: pointer; position: absolute; top: 105px; left: 275px; z-index: 1; width: 90px; height: 40px; border: 5pt solid red;">
19-
<input type="submit" value="Send" style="position: relative; top: 5px; left: 5px; width: 80px; height: 30px; cursor: pointer; "/>
18+
<div id="hiddenButton" style="cursor: pointer; position: absolute; top: 110px; left: 280px; z-index: 1; width: 95px; height: 45px;">
19+
<input type="submit" value="Send" style="position: relative; top: 5px; left: 5px; width: 85px; height: 30px; cursor: pointer; "/>
2020
</div>
2121
</form>
2222
</div>

security-header/src/main/webapp/x-frame-options/unprotected.jsp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<head>
44
<title>X-Frame-Options: Unprotected</title>
55
</head>
6-
<body style="background-color: deeppink">
6+
<body>
77
<iframe src="unprotectedForm.jsp" id="form" style="border: 0; width: 100%; height: 100%">
88
</iframe>
9-
<div style="position: absolute; top: 0; left: 0; width: 50%; height: 50%; border: 5pt solid orange;">
9+
<div style="position: absolute; top: 0; left: 0; width: 50%; height: 50%; background-color: orange; opacity: 0.3;">
1010
<form name="fakeLoginForm" action="FakeServlet" method="post">
1111
<div style="position: absolute; top: 30px; left: 190px;">
1212
<input style="width: 175px; height: 25px;" type="text" name="username" id="username"/>
@@ -15,8 +15,8 @@
1515
<div style="position: absolute; top: 72px; left: 190px;">
1616
<input style="width: 175px; height: 25px;" type="password" name="password" id="password"/>
1717
</div>
18-
<div id="hiddenButton" style="cursor: pointer; position: absolute; top: 105px; left: 275px; z-index: 1; width: 90px; height: 40px; border: 5pt solid red;">
19-
<input type="submit" value="Send" style="position: relative; top: 5px; left: 5px; width: 80px; height: 30px; cursor: pointer; "/>
18+
<div id="hiddenButton" style="cursor: pointer; position: absolute; top: 110px; left: 280px; z-index: 1; width: 95px; height: 45px;">
19+
<input type="submit" value="Send" style="position: relative; top: 5px; left: 5px; width: 85px; height: 30px; cursor: pointer; "/>
2020
</div>
2121
</form>
2222
</div>

0 commit comments

Comments
 (0)