Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我说 Google Maps Javascript API 的响应可以由客户端操纵时,与 Google Maps 员工交谈时,他告诉我请求可以由客户端发出,并且答案会直接发送到我的服务器。不幸的是,我找不到声明响应地址的可能性。
AFAIK 没有实施的方法来做到这一点(也许有一个带有营业执照的选项)。
你可以做什么:设置一个服务器端脚本,当响应到达时将立即(通过 ajax)调用并将响应传递给该脚本。您现在可以将原始响应存储在服务器上,并且不必再信任来自客户端的数据。(当然,如果有经验的用户愿意,这也可能会被拦截)