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.
changed the title [-]Multiple domain for different ressources ? overriden httpconfig[/-][+]Multiple domains for different ressources ? overriden httpconfig[/+]on 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?
Activity
[-]Multiple domain for different ressources ? overriden httpconfig[/-][+]Multiple domains for different ressources ? overriden httpconfig[/+]jmdobry commentedon Dec 12, 2016
Instead of using
httpConfig#baseURL
, I would recommend the following:rkingon commentedon Apr 12, 2018
@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?