Skip to content

Commit

Permalink
Merge pull request #642 from cockroacher/sri
Browse files Browse the repository at this point in the history
Add basic Subresource Integrity (SRI) Validation
  • Loading branch information
7h3Rabbit authored Sep 30, 2024
2 parents eb06b9a + b04acec commit 2daffa4
Show file tree
Hide file tree
Showing 9 changed files with 458 additions and 1 deletion.
2 changes: 2 additions & 0 deletions helpers/sitespeed_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from helpers.data_helper import append_domain_entry,\
append_domain_entry_with_key, has_domain_entry_with_key
from helpers.http_header_helper import append_data_from_response_headers
from helpers.sri_helper import append_sri_data

def get_data_from_sitespeed(filename, org_domain):
"""
Expand Down Expand Up @@ -105,6 +106,7 @@ def get_data_from_sitespeed(filename, org_domain):
result)

append_csp_data(req_url, req_domain, res, org_domain, result)
append_sri_data(req_domain, res, result)

result['visits'] = 1
return result
Loading

0 comments on commit 2daffa4

Please sign in to comment.