0

I have an EXTJS app and when I look at the source by using browser's inspect element I can see my entire app's source code (except for the server-side code ofcourse.).

I have seen some extjs apps that when inspecting theie source code, all I can see is the app.html page and non of their .js files is discover able by the browser.

I was wondering how I should configure my EXTJS app to make them not viewable inside the browsers "Sources" tab (ie. Chrome's Inspect Element > Sources).

Any help is much appreciated,

Amir Mog
  • 321
  • 1
  • 4
  • 17

1 Answers1

0

The best you can do is to obfuscate your code, as there is no way to stop someone looking at it once its got to the browser.

Even if the browser could hide it somehow, there is nothing stopping a user sniffing the packets on the network etc.

SteveP
  • 18,840
  • 9
  • 47
  • 60