N
N
nezzard2018-07-24 20:49:45
Vue.js
nezzard, 2018-07-24 20:49:45

How to hide api keys in nuxt.js?

Good evening, please tell me how to hide api keys from Firebase from the user?
Or is it impossible to do without an additional api?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
ProAI, 2018-07-24
@ProAI

Nuxt.js is primarily a rendering of the UI on the server side (server!!!) and, accordingly, you need to try and specifically show the keys (embed them in the page, in the Vue component) so that the end user sees them.
Imagine that people ask you to show some photo from your safe, laying it out in front of them on the table.
Table - browser.
You are a Nuxt.js server application.
Your safe is Firebase.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question