How do I secure a REST-API?
问题 I've set up an API with authentication but I want to only allow certain applications and websites to access it. What do I do? I've got authentication set up for users that are Logged in only being able to access the API, however, how do I prevent them from just logging in from anywhere? 回答1: Before I address your question, I think is important that first we clear a common misconception among developers, regarding WHO and WHAT is accessing an API. THE DIFFERENCE BETWEEN WHO AND WHAT IS