Skip to content

Is it possible to change the base URL for /ngapimock/* calls? #74

@galanovnick

Description

@galanovnick

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.

"/ngapimock/*": {
    "target": "http://localhost:9090",
    "secure": false,
    "logLevel": "debug"
  }

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions