Skip to content

Commit

Permalink
Feature: Add more headers to section 5 (Browser Compatibility)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfc-st committed Nov 16, 2023
1 parent 487754c commit 6362ce6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions humble.py
Original file line number Diff line number Diff line change
Expand Up @@ -1645,11 +1645,13 @@ def custom_help_formatter(prog):
# Report - 5. Browser Compatibility for Enabled HTTP Security Headers
print_detail_r('[5compat]')

l_sec = ['Cache-Control', 'Clear-Site-Data', 'Content-Type',
'Content-Security-Policy', 'Cross-Origin-Embedder-Policy',
'Cross-Origin-Opener-Policy', 'Cross-Origin-Resource-Policy', 'NEL',
l_sec = ['Access-Control-Allow-Methods', 'Cache-Control', 'Clear-Site-Data',
'Content-Type', 'Content-Security-Policy',
'Cross-Origin-Embedder-Policy', 'Cross-Origin-Opener-Policy',
'Cross-Origin-Resource-Policy', 'Feature-Policy', 'NEL',
'Permissions-Policy', 'Referrer-Policy', 'Strict-Transport-Security',
'X-Content-Type-Options', 'X-Frame-Options']
'Supports-Loading-Mode', 'X-Content-Type-Options',
'X-DNS-Prefetch-Control', 'X-Frame-Options', 'X-XSS-Protection']

header_matches = [header for header in l_sec if header in headers]

Expand Down

0 comments on commit 6362ce6

Please sign in to comment.