For example, check out this Facebook plugin.
On the client side, the API key is clearly visible. What prevents another user from getting this key and using this function on another site?
I decided that a very naive implementation would check the domain from which the request comes from, but such things are easy to fake.
If I were to create something like this, how could I provide an authentication process?
I want most of this work to be on the client side, although some form of server authentication is required? Any links or tips would be greatly appreciated.
Update
Similar question API keys, which I found useful.
javascript authentication client-side
Finglas Oct 21 '11 at 8:55 2011-10-21 08:55
source share