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 i
@RVP's code will work, We can do one more thing for same.
add return only, it will also work
return
intercept(req: HttpRequest, next: HttpHandler): Observable> { if(helper.isTokenExpired(tokenVal)){ return; } . . <{code}> . }