
There is no way to hide JavaScript in web apps in general, so you can't hide it in add-ins either. The best you can do is use an obfuscator/minifier tool to make the code difficult for a human to read.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Dear community,
We have developed a Word addin in javascript.
All the code for this addin is executed on the client side, no calls are made to a back-end server.
The problem is that all the code is visible by using the 'Attach debugger' option in the sidebar in which the front-end of the addin is shown.
The question: Is it possible to disable this debug option or hide the javascript code in any other way? or is the only way to achieve this to move all the business logic to a back-end server?
There is no way to hide JavaScript in web apps in general, so you can't hide it in add-ins either. The best you can do is use an obfuscator/minifier tool to make the code difficult for a human to read.