S
S
Shane Matte2017-01-29 11:44:42
JavaScript
Shane Matte, 2017-01-29 11:44:42

Webpack how to hide data after build?

Good afternoon. I assembled the project, all the logic lies in bundle.js, and I connect it on the client so that the application works. But the fact is that there are settings that require some modules (keys, passwords). Everyone can see them now, how this problem is solved?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg Gamega, 2017-01-29
@mattedev

I also alerted this moment at first, but after thinking, I came to the conclusion that this is not a problem))
look at firebase as a backend with an open api, where data is available only to authorized users.
implement security at the level of rights, you can’t hide the settings in any way.

_
_ _, 2017-01-29
@AMar4enko

No way. If some data is needed by the client in the browser to work, they are a priori available to anyone.

A
abberati, 2017-01-30
@abberati

Obfuscate the code, keys and passwords will be written into obscure variables in the bowels of the minified code. If you do not spend a fair amount of time searching, you will not find it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question