Web Security · Junior · Question 70 of 75

A React app needs a payment provider's secret API key. Where should it live?

Explanation

Everything shipped to the browser can be read in DevTools. Only public keys (like a publishable key) can be in front-end code.

Further reading

Problem with a question

Web Security · Junior · question 70

Test yourself

Take the Web Security · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz