File tree 5 files changed +21
-8
lines changed
5 files changed +21
-8
lines changed Original file line number Diff line number Diff line change
1
+ #Secure Headers
2
+
3
+ Secure headers will help you to keep up with the new security headers. Just hit Analyze! and see what you're missing.
Original file line number Diff line number Diff line change 1
1
body {
2
- width : 400 px ;
3
- height : 300 px ;
2
+ width : 300 px ;
3
+ height : 400 px ;
4
4
}
5
+
6
+ .button {
7
+ position : absolute;
8
+ top : 50% ;
9
+ left : 40% ;
10
+ }
11
+
12
+ .wrapper {
13
+ text-align : center;
14
+ }
Original file line number Diff line number Diff line change 7
7
< script type ="text/javascript " src ="popup.js "> </ script >
8
8
</ head >
9
9
< body >
10
- < button id ="reload-page "> Analyze headers on the current tab</ button >
10
+ < div class ="wrapper ">
11
+ < button class ="button " id ="reload-page "> Analyze!</ button >
12
+ </ div >
11
13
< h1 id ="title " hidden > Secure Headers</ h1 >
12
14
</ body >
13
15
< script type ="text/javascript " src ="refresh.js "> </ script >
Original file line number Diff line number Diff line change @@ -41,11 +41,7 @@ function updateView(url, headers) {
41
41
missingHeaders = missingSecurityHeaders ( headers ) ;
42
42
missingHeadersHTML = showHeaders ( missingHeaders , 'missing-headers' ) ;
43
43
div . appendChild ( missingHeadersHTML ) ;
44
- allHeadersButton = document . createElement ( "button" ) ;
45
- allHeadersButtonText = document . createTextNode ( "All headers" ) ;
46
- allHeadersButton . appendChild ( allHeadersButtonText ) ;
47
44
div . appendChild ( document . createElement ( "br" ) ) ;
48
- div . appendChild ( allHeadersButton ) ;
49
45
document . body . appendChild ( div ) ;
50
46
}
51
47
Original file line number Diff line number Diff line change 1
1
security_headers = [
2
2
'x-frame-options',
3
3
'x-xss-protection',
4
- 'random-security-header'
4
+ 'content-security-policy',
5
+ 'strict-transport-security',
6
+ 'upgrade-insecure-requests'
5
7
]
You can’t perform that action at this time.
0 commit comments