Skip to content

Commit

Permalink
Give points for not having scripts
Browse files Browse the repository at this point in the history
HTTP Observatory shouldn't encourage web developers to add scripts to
their website simply to get more points. Fixes mozilla#449
  • Loading branch information
Seirdy committed Sep 20, 2022
1 parent 65ffe6d commit 32826ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion httpobs/docs/scoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ referrer-policy-header-invalid | `Referrer-Policy` header cannot be recognized |
sri-implemented-<br>and-all-scripts-loaded-securely | Subresource Integrity (SRI) is implemented and all scripts are loaded from a similar origin | 5
sri-implemented-<br>and-external-scripts-loaded-securely | Subresource Integrity (SRI) is implemented and all scripts are loaded securely | 5
sri-not-implemented-<br>but-all-scripts-loaded-from-secure-origin | Subresource Integrity (SRI) not implemented as all scripts are loaded from a similar origin | 0
sri-not-implemented-<br>but-no-scripts-loaded | Subresource Integrity (SRI) is not needed since site contains no script tags | 0
sri-not-implemented-<br>but-no-scripts-loaded | Subresource Integrity (SRI) is not needed since site contains no script tags | 5
sri-not-implemented-<br>response-not-html | Subresource Integrity (SRI) is only needed for html resources | 0
sri-not-implemented-<br>but-external-scripts-loaded-securely | Subresource Integrity (SRI) not implemented, but all external scripts are loaded over https | -5
request-did-not-return-status-code-200 | Site did not return a status code of 200 (deprecated) | -5
Expand Down
2 changes: 1 addition & 1 deletion httpobs/scanner/grader/grade.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@
},
'sri-not-implemented-but-no-scripts-loaded': {
'description': 'Subresource Integrity (SRI) is not needed since site contains no script tags',
'modifier': 0,
'modifier': 5,
},
'sri-not-implemented-but-all-scripts-loaded-from-secure-origin': {
'description': 'Subresource Integrity (SRI) not implemented, but all scripts are loaded from a similar origin',
Expand Down

0 comments on commit 32826ef

Please sign in to comment.