Skip to content

Commit

Permalink
Merge pull request #47 from santoru/case-fix
Browse files Browse the repository at this point in the history
Fix case
  • Loading branch information
santoru committed May 17, 2024
2 parents 0186730 + 95f4b70 commit 0db4d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shcheck/shcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def main():
json_results["missing"] = []

# Before parsing, remove X-Frame-Options if there's CSP with frame-ancestors directive
if "Content-Security-Policy".lower() in str(headers).lower() and "frame-ancestors" in headers.get('Content-Security-Policy'.lower()).lower():
if "content-security-policy" in headers.keys() and "frame-ancestors" in headers.get("content-security-policy").lower():
sec_headers.pop("X-Frame-Options", None)
headers.pop("X-Frame-Options".lower(), None)

Expand Down

0 comments on commit 0db4d79

Please sign in to comment.