I was able to fix this by removing the audience entirely. From the documentation I thought it was required for an http interceptor, but it’s not. Switching the allowedList to just [‘/api/*’] solved the problem.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
httpInterceptor does not add authorization header | 4 | 5844 | January 31, 2023 | |
AuthHttpInterceptor doesn't add token to authorization header - Error 401 unauthorized - Angular | 2 | 3025 | January 13, 2023 | |
Empty JWT payload in api request header | 3 | 1485 | February 20, 2023 | |
Allow unauthorized http request but add token if authorized | 0 | 1742 | August 29, 2022 | |
Angular AuthHttpInterceptor option for adding headers to every request | 0 | 3990 | March 18, 2021 |