jenaye / Tipnturn-front

Angular 5 app to manage danse organization
MIT License
1 stars 2 forks source link

Create HttpInterceptor #32

Closed jenaye closed 6 years ago

jenaye commented 6 years ago

we can follow this guid and prefix requests and same for token https://theinfogrid.com/tech/developers/angular/building-http-interceptor-angular-5/

Interceptor can edit request/response, i declare it 1 time, and no need to call it, he's called for every request/response in application

This feature need be added fast because when we running ng server -dev we got cannot get with 404status

reproduce : Just npm start and go to localhost:4200 i'll have the error

jenaye commented 6 years ago

this bug isn't caused by service, we should delete every component, and activate 1 by 1 to know where is the problem

jenaye commented 6 years ago

Finaly we understand why we got problem with /get 404, was caused by options in header