-
Notifications
You must be signed in to change notification settings - Fork 91
Closed
Description
Hello, thank you for such great library.
I'm currently implementing it for our app,
Basically, it works.
But,
We have in
network_sec_config.xml - a localhost domain.
when running the app, the library throw exception :
DomainValidator domainValidator = DomainValidator.getInstance(false);
if (!domainValidator.isValid(hostname)) {
throw new ConfigurationException("Tried to pin an invalid domain: " + hostname);
}
@jobot0 Can you help please ?
I see that
DomainValidator domainValidator = DomainValidator.getInstance(false);
domainValidator is always inited with false, and thats why it fails in returning true
in returning allowLocal && hostnameRegex.isValid(domain)
because allowLocal is always false.
BTW, localhost sits inside different [domain-config]
without [pin-set] , and your library throws exception where no pins provided there.
I don't want pins there..
Thanks for the help...
Jazzy.
Metadata
Metadata
Assignees
Labels
No labels