Answer the question
In order to leave comments, you need to log in
How to store secret data in React?
How to hide, for example, the key to the API so that there were no problems during the deployment.
Answer the question
In order to leave comments, you need to log in
Well, for example, you interact with an external API through your backend, and store the key on the server
Not at all. All react code is available from the developer console.
If you need to close the api, proxy the request through your backend and check cors.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question