urls without host are not handled by the isWhitelistedDomain method. In fact it should return true when there is no host.
Yeah this seems screwy. The documentation even says that this is a supported feature.
For example, the following request assumes that the domain is the same as the one serving your app. It doesn't need to be whitelisted in this case.
this.http.get('/api/things')
.subscribe(...)
Fixed in 1.2
Most helpful comment
Yeah this seems screwy. The documentation even says that this is a supported feature.
this.http.get('/api/things') .subscribe(...)