Closed leabaertschi closed 5 months ago
Hi,
Pinning of subdomains is done by default, so you should just specify 'domain.com'
and subdomains should be pinned. The package configures TrustKit with kTSKIncludeSubdomains set to true
Thanks for the feedback, I'll look into updating the README or throwing an error for "unrecognized domains" at prebuild time.
Hi,
if I remove *.
from the hostnames it stops working on Android though, that's why I added it in the first place. I tested in an emulator running Android 14.0.
Ok, in this case you should consider pinning all subdomains not supported for now 😬
I'll implement it next week, probably with this API for both platforms:
domain.com
: pins specifically domain.com
*.domain.com
: pins domain.com
and all its subdomainsThanks a lot for taking care of this!
This has been released in 0.5.0.
You should now be able to use a wildcard to pin a domain and all its subdomains on both iOS and Android
Thanks, it works great now!
Hi, me again :). I have the following pins in the app config:
This works fine on android. But on iOS despite the hashes being wrong (for testing if it works) all requests go through and I get the following logs:
What am I missing? Is there a config to include subdomains?