We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a6bfa1 commit b7cd92eCopy full SHA for b7cd92e
trustkit/src/main/java/com/datatheorem/android/trustkit/config/DomainPinningPolicy.java
@@ -43,6 +43,8 @@ public final class DomainPinningPolicy {
43
throws MalformedURLException {
44
// Run some sanity checks on the configuration
45
// Check if the hostname seems valid
46
+ // DomainValidator.getInstance(true) allows TrustKit to include localhost in the valid domains
47
+ // see https://github.com/datatheorem/TrustKit-Android/issues/25
48
DomainValidator domainValidator = DomainValidator.getInstance(true);
49
if (!domainValidator.isValid(hostname)) {
50
throw new ConfigurationException("Tried to pin an invalid domain: " + hostname);
0 commit comments