javascript - How to make REST calls secure -


i'm calling webservice using rest methodology using json/js/jquery , wondering if there way call webservice without exposing api keys in source code. know of way hide api keys public , still make call?

i'm worried if goes through source, able use api key.

you delegate calls own server, instead of:

  1. browser sends http request external rest api, api key
  2. external rest api sends response browser

you have

  1. browser sends http request server
  2. your server sends http request external rest api, api key
  3. external rest api sends response server
  4. your sever sends response browser

i'm not sure else "stealing" api key huge problem, though, since api keys (google, example) associated specific domains.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -