Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Allow HTTP scheme for localhost URLs
Browse files Browse the repository at this point in the history
In my experience, localhost URLs are almost exclusively used for development purposes, and setting up HTTPS for localhost URLs is really tedious, and most of the time unnecessary.
  • Loading branch information
astorije committed Apr 19, 2018
1 parent 5644759 commit bae5c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/noHttpStringRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class Rule extends Lint.Rules.AbstractRule {
severity: 'Critical',
level: 'Mandatory',
group: 'Security',
recommendation: '[true, "http://www.example.com/?.*", "http://www.examples.com/?.*"],',
recommendation: '[true, "http://www.example.com/?.*", "http://www.examples.com/?.*", "http://localhost:?.*"],',
commonWeaknessEnumeration: '319'
};

Expand Down

0 comments on commit bae5c76

Please sign in to comment.