哪种http方法用于从服务器获取JSON数据?

时间:2017-06-12 16:40:06

标签: javascript ajax http

我需要使用ajax从服务器获取带有数据的JSON对象。我需要用什么方法?我理解逻辑将是使用GET方法,但我不明白我如何检查用户不要将此地址键入为url。我不希望该用户可以看到带有JSON的页面。

1 个答案:

答案 0 :(得分:0)

You can authenticate requests via tokens inside the header. Therefor no user will be able to access your JSON.