S
S
saqo_tadevosyan2020-07-15 21:35:54
React
saqo_tadevosyan, 2020-07-15 21:35:54

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

3 answer(s)
P
Pavel Shvedov, 2020-07-15
@mmmaaak

Well, for example, you interact with an external API through your backend, and store the key on the server

M
McBernar, 2020-07-15
@McBernar

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.

I
Islam Ibakaev, 2020-07-16
@devellopah

no way at the front

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question