kk nair
kk nair

Reputation: 41

Error occurred while trying to proxy request SELF_SIGNED_CERT_IN_CHAIN https api angular CLI

In IBM WAS and all we have an option to add the certificate to truststore, to get rid of such certificate issues. What we should do with npm ?

Upvotes: 1

Views: 5252

Answers (1)

Robin Dijkhof
Robin Dijkhof

Reputation: 19278

The CLI is just a local proxy for development. You can add "secure": false to prevent the error.

Example:

{
  "/api": {
    "target": "https://localhost:3000",
    "secure": false
  }
}

Upvotes: 4

Related Questions