Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Attach token with http request angular with interceptors

@NgModule({
  declarations: [...],
  imports: [...],
  providers: [
    { provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true },
  ],
  bootstrap: [ AppComponent ],
})
export class AppModule { }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Attach #token #http #request #angular #interceptors
ADD COMMENT
Topic
Name
8+3 =