Ways to make Javascript code hacking / injection / manipulation difficult?

后端 未结 4 984
情深已故
情深已故 2021-02-06 08:37

Are there ways to prevent, or make it difficult enough, for someone to inject Javascript and manipulate the variables or access functions? A thought I had is to change all var n

4条回答
  •  心在旅途
    2021-02-06 08:57

    Accept that your javascript will be "manipulated" and make provision at the server side. There's fundamentally nothing you can do to stop people tinkering with the client.

提交回复
热议问题