Is there a way to conceal a function in JavaScript console so that it's inaccessible for calling?
Let me give you some context - let's say I have a JavaScript function that adds records to a database using Ajax. The issue is, anyone can call this function from the console and add numerous records to the database at will. I need the function to only be usable within the web application itself and not accessible from the console. I've tried obfuscating the code to hide it, but even then, the function can still be located within Google Chrome's JavaScript console.