As you know it's possible to use Interceptors in new versions of Angular 4.
In mine, I want to cancel a request in interceptor in some conditions. So is it possible? or maybe what should I ask is, Which way I should do that?
Also It will be Ok! if I found a way to rewrite some response to the request instead of canceling it.
I think all you have to do to cut the interceptor chain is to simply return an empty
Observable
like so: