1

I want to proxy all requests from local /api/v2 to https://somedomain.com/api/v2, I have such proxy js config:

{
  "/api/v2/*":
  {
    "target": "https://somedomain.com",
    "secure": false,
    "logLevel": "debug",
    "changeOrigin": true
  }
}

But this config does not work as I've expected, here is example: from /api/v2/some/test to https://somedomain.com/api/v2/some/test

But it seems this does not work correctly, here what I see in console:

[HPM] GET /api/v2/some/test -> https://somedomain.com
2
  • enable the secure property, "secure": true Commented May 14, 2020 at 17:44
  • @JohnVelasquez changing secure option does not have any affect on this routing Commented May 14, 2020 at 17:47

1 Answer 1

1

There was no problem at all, just led to misunderstanding that this logs in console [HPM] GET /api/v2/some/test -> https://somedomain.com, so this is working ok.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.