javascript - How to hide ajax requests in browsers such as chrome so that they will not be displayed in the console
淡淡烟草味
淡淡烟草味 2017-07-05 10:47:58
0
16
5914

Due to the confidentiality of the project, the address of the ajax request interface needs to be hidden. How do you do it?

淡淡烟草味
淡淡烟草味

reply all(16)
刘奇

It feels like a request made by someone who is completely ignorant of technology... There will be no display without ajax request, just pure back-end rendering

typecho

ajax request is also an http request

As long as it is an HTTP request, you can see the request address, parameters and response by capturing the packet

世界只因有你

Don’t waste energy unless you don’t use HTTP protocol.

学习ing

First, there is no need for ajax to render data in the background
Second, using ajax to use an intermediate interface to only return the data required by the front-end
It is impossible to expose the payment interface of our project to the front-end. It is the combination of these two methods

过去多啦不再A梦

Cannot be hidden
//You can use the backend to determine whether the connection source is legal. If it is not legal, close the connection
// $_SERVER['HTTP_ORIGIN'] identifies which site the page request comes from
if($_SERVER['HTTP_ORIGIN'] != 'http://www.baidu.com')
{
die();
}

洪涛

Change the idea, the browser cannot hide it, the browser exposes the API, there is no such API

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template