If path A consists of one character that is equal to the U+002F
SOLIDUS character (/) and path B is empty, return "Matches".
Also a URL like example.com/foo will match a source expression of example.com, as well as example.com/, so having two source expressions listed like this is redundant.
All PRs:
Adding a new header
Generally, adding a new header is always OK.
Adding a new CSP directive
This PR normalises CSP source expressions to exclude trailing slashes from the Domain if there is no other information in the path.
CSP3 more explicitly calls this out in the path match algorithm:
Also a URL like
example.com/foo
will match a source expression ofexample.com
, as well asexample.com/
, so having two source expressions listed like this is redundant.