How to prevent html/JavaScript code modification

前端 未结 8 1865
一向
一向 2020-11-30 13:17

I would like to know if there is a way to prevent an html page with jQuery or javascript to be modified by the user to change its behavior.

A user can modify it usin

8条回答
  •  萌比男神i
    2020-11-30 13:33

    It's impossible. When you send code to the client, the client can look at it and modify it. Only code that runs on your server is protected aganist that.

提交回复
热议问题