You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Wondering how to manage multiple httpConfig for different ressource (eg: setting different domain url for different ressource ), I ended up working with two adapters, which I believe was the right way to achieve it.
But I was surprised httpConfig was overridden by registering two http adapters.
Is there an another to achieve this, any workaround ?
The text was updated successfully, but these errors were encountered:
AlexandreBonaventure
changed the title
Multiple domain for different ressources ? overriden httpconfig
Multiple domains for different ressources ? overriden httpconfig
Nov 3, 2016
@jmdobry i am trying to do the same and do it exactly as you mention above... my issue is that one API requires an auth token in the headers and the other doesn't. however- both adapters are sharing the httpConfig defaults. This is sending the apiKey to both adapters and one doesn't allow that header key which results in an error. Any recommendations?
Hi,
Wondering how to manage multiple httpConfig for different ressource (eg: setting different domain url for different ressource ), I ended up working with two adapters, which I believe was the right way to achieve it.
But I was surprised httpConfig was overridden by registering two http adapters.
Repro: https://jsfiddle.net/alexandreBonaventure/9ue6v6qy/6/
Is there an another to achieve this, any workaround ?
The text was updated successfully, but these errors were encountered: