witoldsz / angular-http-auth

MIT License
2.38k stars 418 forks source link

use the config for the next requests (+ cookies) #110

Closed jarnix closed 8 years ago

jarnix commented 8 years ago

For the issue #108 .

I just added a new service for holding the config and then added a request handler on the http interceptor to read the config and send it with every request.

An update from #109 that I closed, because angular was not sending the cookies anymore...

witoldsz commented 8 years ago

I am not sure if creating separate configuration service is the right approach. Maybe the module itself should be configurable by it's own provider, like for example the $http: https://docs.angularjs.org/api/ng/provider/$httpProvider

jarnix commented 8 years ago

nevermind