Hi,

I implemented an httpInterceptor in the config block of an application that 
requires access to the $httpProvider to set the default Authorization 
header. Now I'd like to move this interceptor to a service. I assume it is 
not possible to access the $httpProvider in a service. Is there another way 
to set a header for all following HTTP requests? What's the best practise 
in that case?

Best,
Johannes Zorn

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to