CB-5991: Fix whitelist path matching for trailing slashes
CB-5395: Make scheme and host (but not path) case-insensitive in whitelist