Checking if a user can see my codes in JavaScript here in Odoo whenever he inspect element in a browser. The concern is security of the codes. I am using only a trial version of the Odoo
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
In general, it is not possible to completely prevent someone from viewing your JavaScript code if they are determined to do so. They can use tools such as the browser's developer tools to view the source code of your website.
However, there are some steps you can take to make it more difficult for someone to view and understand your code. One option is to minify your JavaScript code, which removes unnecessary whitespace and comments, making it more difficult to read. You can also use a tool such as a JavaScript obfuscator, which makes your code more difficult to understand by replacing variable and function names with random characters.
It is important to note that these techniques do not provide complete security, as someone with enough knowledge and time can still reverse engineer your code. The best way to protect sensitive information in your code is to not include it in the client-side JavaScript in the first place, and instead handle it on the server side.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
0
thg 7 25
|
431 | ||
|
1
thg 7 25
|
5362 | ||
|
0
thg 7 25
|
920 | ||
|
0
thg 6 25
|
922 | ||
|
1
thg 6 25
|
1056 |