How to avoid "ERR_CERT_AUTHORITY_INVALID" error in React?

Viewed 2673

I have a react app and I'm trying to make an Axios GET call from the backend. It returns the following Error

"ERR_CERT_AUTHORITY_INVALID"

In the Postman, it works when I disable the SSL from the Postman App. How can I disable it from the React app or from the Browser?

I have already tried hundreds of ways to get a self-signed certificate to my localhost and none of them were worked.

1 Answers

You need to do couple of things here:-

  1. Modifying the start script attribute
  2. Generating valid ssl keys and configuring for create react app.

Please refer to think link for more details

Hope it helps, Thanks

Related