I am developing a website project based on NodeJs / Express, and for some parts of the user interface I use jQuery ajax to get secondary data.
How can we handle some basic control of our Rest API endpoints, which are used for ajax calls by the browser? I thought about some kind of authorization of tokens, but other clients (scripts, etc.) can also use it after intercepting it, so how can we protect our server from unwanted requests? What other controls should be used in these cases (recognize too many requests from the same client, blacklisted clients, etc.)?
source
share