How to block external http requests? (securing AJAX calls)

There is no way to avoid forged requests in this case, as the client browser already has everything necessary to make the request; it is only a matter of some debugging for a malicious user to figure out how to make arbitrary requests to your backend, and probably even using your own code to make it easier. You don’t need “cryptographic tricks”, you need only obfuscation, and that will only make forging a bit inconvenient, but still not impossible.

Leave a Comment