Angular 5 HttpInterceptor and sending Authorization Token in header
问题 My flow is login page -> home page. Login page has no token, after logging in, server provides token and user is redirected to home page. Home page sends the token to server, token is verified, server sends back data to display on front end. Problem: HttpInterceptor firing on login request Cannot read property 'token' of null . I would like to have the interceptor somehow ignore the login api request and only intercept on subsequent calls if token exists. 回答1: hello you can a key value in