Skip to content

Proxy config secure flag #54

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

Open
tomtucker18 opened this issue Jan 12, 2023 · 0 comments
Open

Proxy config secure flag #54

tomtucker18 opened this issue Jan 12, 2023 · 0 comments

Comments

@tomtucker18
Copy link

I have a development backend running on HTTPS with a self-signed certificate. With the angular-http-server I proxy all /api requests to this server. The problem is that the proxy won't make a request to this "insecure" backend.

This problem could be solved with a configuration option for secure/insecure requests. With this feature, the config would be as following.

const config = {
  proxy: [
    {
      forward: ["api"],
      target: "192.168.56.101:8080",
      protocol: "https",
      secure: false
    }
  ]
}

The node-http-proxy library used in this project allows the secure option to be configured. (Proxy Options)

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