Base solution for your next web application
Open Closed

ImportFromExcel: Authentication bearer token has not been added by AbpHttpInterceptor #9642


User avatar
0
BTH108 created

Prerequisites

  • What is your product version? AspNetZero v8.6
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net core
  • What is ABP Framework version? AbpBoilerplate v5.6

Scenario

  1. I made a new component in my module to perform importing excel file. That I based on src/app/admin/users/users.component.ts.
  2. I keep the original configuration about AbpHttpInterceptor ONLY in ServiceProxy module.
  3. Result:
  • My component has not been intercepted by AbpHttpInterceptor, so the request does not have the Bearer token, and failed.

  • But, users.component.ts has been intercepted so it had token, and successfully done.

Question:

Please help me to explain how the request in user component is intercepted, but mine hasn't? *Both Admin module and MyModule module both do not import AbpHttpInterceptor.


2 Answer(s)