Skip to Content
0

SapUi5 application code is visible in debugging console and i need to disable debugging

Apr 14, 2017 at 09:03 AM

382

avatar image

If i run application using eclipse and debug in chrome i can see my code and debug and change value on command console.

If i run application directly from server then still i can change value on command console and debug and view my source code.

Security concerns are very important since some way or other way someone can change values on debug.

Is there any way to disable debugging tools on all browsers and secure ui5 applications.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Srikanth KV Apr 14, 2017 at 03:43 PM
0

There is no option to disable debugging.....

you can create 'Component-preload.js' using GRUNT/GULP which will compress and uglify JS, this way even the source code is loaded on browser it will be bit difficult

Share
10 |10000 characters needed characters left characters exceeded
Rutvik Upadhyay Feb 09 at 01:03 PM
0

Try to add this code into index.html prior to calling the script for sap.ui.core

<script>

window["sap-ui-config"] = {

resourceRoots : { "sap.ca.common.uilib": "resources/sap/ca/common/uilib/", "resources" : "resources/" },

productive: true };

</script>

Share
10 |10000 characters needed characters left characters exceeded