How can I disable console log messages in the browser's developer mode?

Hello

I am execute my application on anvil-app-server.
The data I want to display is stored as a python dictionary in server code.
I retrieve this data in the client code using the anvil.server.call method.

When I use “anvil.server.call”, The anvil runtime(anvil-app-server) generates logs that RPC request(you can see the logs in the screenshot below).
image

So, My question is: Can I prevent these logs?
In My actual application, I need to hide this data from users.

Thanks for reading.

1 Like

Welcome to the forum! :wave:

In general, all data on the client-side of your app is visible to a savvy user. This is true of all web apps, not something specific to Anvil. If you don’t want them to be able to see it, you can’t send it to the client code. See: Anvil Docs | Building Secure Apps

3 Likes

Thanks.
I will find another way to use data.

If you want to use some data on the browser, it is going to be visible to hackers, even if you use “another way”.

You can process it in the server, transform it and send it to the server as a report, chart or other formats rather than sending raw data.

2 Likes