Is there a way I can stop people from seeing the Javascript Source code that includes the Server API key and server information?
Asked
Active
Viewed 37 times
-2
-
You need to move the 3rd party request to your backend and create your own API to hide the keys. – Feb 28 '22 at 13:31
-
1Please see the answers to the linked question [and so many others](/search?q=%5Bjs%5D+hide+source+code). – T.J. Crowder Feb 28 '22 at 13:32
1 Answers
1
No, there is not.
You can obfuscate and minify your code, but that doesn't help since your users can look at their browser's Network Inspector instead.

AKX
- 152,115
- 15
- 115
- 172