Whenever client logs an event in amplitude, its makes an HTTPS request to amplitude api, the payload of that request contains the projects API key. This means it can be misused and wrong data can be sent.
The first solution to prevent this that came to my mind is to create a proxy service that redirects the events to amplitude after authenticating the request but it has its own cost, so my questions here are:
- What are the best practices around here to prevent it?
- Is it suggested to let the API Key exposed?
Thanks,
Devanshu