Answer the question
In order to leave comments, you need to log in
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
Pass requests through your backend, and store the key on the server
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question