Is there any way to hide Ajax in a web application?

Asked

Viewed 108 times

3

Is there any way to hide AJAX in a web application?

To what extent is AJAX safe? Because analyzing the code you can know the address of the server, the file, the function, and even the response of the server...

1 answer

4

There is no way to "hide" AJAX, after all, there is nothing different between it and a common request that your browser does, except the fact that it is asynchronous.

Any request you make is subject to inspection, either through the tab Network of Chrome Devtools, software like the Curl and others. That way, you can always check data like:

  • The URL of the request;
  • Data and headers sent;
  • The received header and response;
  • And a lot of other information. It’s even possible to inspect the data stream of a Websocket in real time!

I do not consider that to be a security problem, after all, that is how HTTP works. You should worry about taking care of what you send to the client and whether or not you are dealing with what it sends to the server.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.