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
Is it possible to change the base URL for /ngapimock/* calls without using any proxy?
In most of the examples, we use proxy to redirect all these calls to our actual API server.
But such approach forces us to push all other API calls through the same proxy because otherwise, as far as I understand, the cookie (or session id?) will differ so selectScenario won't have any effect.
So if for example, we have our UI hosted on the port 4200 and API server on 9090 we can't change any scenario because the cookie is set to 4200 and not to 9090. Does it mean that our UI is limited to http://localhost:4200/* for API calls? And what if UI is already using http://localhost:9090/* and requires no proxy?
The text was updated successfully, but these errors were encountered:
galanovnick
changed the title
Can we change the base URL for /ngapimock/* calls
Is it possible to change the base URL for /ngapimock/* calls?
May 30, 2019
Is it possible to change the base URL for
/ngapimock/*
calls without using any proxy?In most of the examples, we use proxy to redirect all these calls to our actual API server.
But such approach forces us to push all other API calls through the same proxy because otherwise, as far as I understand, the cookie (or session id?) will differ so
selectScenario
won't have any effect.So if for example, we have our UI hosted on the port
4200
and API server on9090
we can't change any scenario because the cookie is set to4200
and not to9090
. Does it mean that our UI is limited tohttp://localhost:4200/*
for API calls? And what if UI is already usinghttp://localhost:9090/*
and requires no proxy?The text was updated successfully, but these errors were encountered: