Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Multiple proxies are ignored #1686

Closed
ghost opened this issue Nov 17, 2016 · 1 comment
Closed

Bug: Multiple proxies are ignored #1686

ghost opened this issue Nov 17, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 17, 2016

Short description of the problem:

Using the latest ionic-cli (2.1.11), multiple proxies (set in the ionic.config.json file) will be ignored, just the first element will be used. It throws 404 for the other endpoints.

Steps to reproduce:

  1. npm i -g [email protected]
  2. set ionic.config.json, like this:
{
  "name": "...",
  "app_id": "...",
  "v2": true,
  "typescript": true,
  "proxies": [
    {
      "path": "/api/",
      "proxyUrl": "http://google.com/",
      "rejectUnauthorized": false
    },
    {
      "path": "/api2/",
      "proxyUrl": "http://google.com/",
      "rejectUnauthorized": false
    }
  ]
}
  1. Start the server: ionic serve
  2. Check in the browser:
  • localhost:8100/api/ -> status 200
  • localhost:8100/api2/ -> status 404
@marcellkiss
Copy link

marcellkiss commented Nov 17, 2016

Sorry, wrong repo (app-scripts is the good one), solved here:
ionic-team/ionic-app-scripts#395

You can close this issue

@ghost ghost closed this as completed Nov 17, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant