简体   繁体   English

如何防止签名令牌用户通过浏览器开发人员工具访问API响应?

[英]how to prevent signed token users from accessing the API response through brower developer tools?

The web app already implements the JWT and HTTPS, the problem is the json response sent from server (Node js) to the signed token users is visible in client (react js) browser dev tool. 该Web应用程序已经实现了JWT和HTTPS,问题是从服务器(节点js)发送到已签名令牌用户的json响应在客户端(反应js)浏览器开发工具中可见。 Is there any way I could use encryption modules to prevent the sensitive json API responses to be viewed plainly using the browser dev tool ?. 有什么办法可以使用加密模块来防止使用浏览器开发工具轻松查看敏感的json API响应? Note: I have tried Obfuscation techniques but not convinced. 注意:我已经尝试过混淆技术,但是没有被说服。

If the security of your application relies on the client behaving in a particular way (eg not displaying API responses directly to the user), then by definition, your application is not secure. 如果您的应用程序的安全性依赖于客户端以特定方式运行(例如,不直接向用户显示API响应),那么根据定义,您的应用程序是不安全的。

Your API should be secure regardless of who is communicating with it (software written by you versus a third party). 无论与谁进行通讯(您与第三方编写的软件),API都应该是安全的。

The fact that you need to ask this demonstrates that a fundamental part of your application is poorly designed. 您需要提出的事实表明您的应用程序的基本部分设计不良。

Ask yourself why you need to hide this information from the user, and solve that problem instead. 问自己,为什么需要向用户隐藏此信息,然后解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过Chrome Developer工具查看来自Ajax调用的HTML响应? - Viewing HTML response from Ajax call through Chrome Developer tools? 如何防止用户打开铬上的开发工具(检查) - How to prevent user from opening developer tools (inspect) on chromium 如何防止检测到 Chrome 开发者工具? - How can I prevent Chrome Developer tools from being detected? 如何防止用户从URL访问文件? - How to prevent users from accessing files from URL? 如何防止某些用户访问 React 中的路由和任何子路由? - How to prevent certain users from accessing a route and any subroutes in React? 如何防止未登录的用户访问 admin 路由? - How to prevent users who are not logged in from accessing the admin route? 如何防止用户直接访问我的html网站? - How to prevent users from directly accessing my html website? 如何防止登录用户访问登录页面? - how do i prevent logged in users from accessing the login page? 如何将 Chrome 开发人员工具的响应打印到我的 UI 上? - How do I print the response from Chrome Developer Tools onto my UI? 如何防止状态通过浏览器的后退/前进按钮访问 - How to prevent states from accessing through browser backward/forward buttons
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM