Configuring Unmock
Adding allowed hosts
By default, Unmock intercepts all traffic to internet. If you want to allow communication with specific hosts, you can add a hosts via unmock.allowedHosts.add()
:
// Allow communication with `*.googleapis.com`
unmock.allowedHosts.add("*.googleapis.com");