0

This is a newbie question. I'm currently working on a twitter clone and added my firebase API endpoint to package.json to use with axios.

"proxy": "https://europe-west1-APPNAME-RANDOMNUMBERS.cloudfunctions.net/api"

Before pushing my code to Github, should I hide the endpoint? If yes, how can I do that? For other types of sensitive data, I have a git-ignored config file but I'm not sure about how to fix this one.

2 Answers 2

0

No, they will be able to see this when they use your website.

0

Is it safe to expose Firebase apiKey to the public?

This should answer your question :)

The Key ist just an Identifier for the App, not the User of the App himself.

1
  • I know, thats what It says in the first Answer. The question just calls it an API Key :)
    – NyghtX
    Aug 8, 2020 at 22:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.