P
P
Persotr272020-10-03 12:42:41
React
Persotr27, 2020-10-03 12:42:41

How to secure API request code in React?

Good day to all. The following problem arose: I have to use in the code requests to an API that needs an Access Key to access. The Access Key is unique and belongs to one account (mine), etc., and, as far as we know, the code of client applications can be viewed and, if desired, this Access Key can be obtained (the user can do this from his browser). How can this be prevented and avoided? Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Shvedov, 2020-10-03
@Persotr27

Pass requests through your backend, and store the key on the server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question