Is it possible to hide api key variable in JS code, hide it somehow or or encrypt it in the source code? Thanks.
-
Have a server in the middle that runs a server side language. NodeJS or PHP are the two easiest options.AndrewL– AndrewL2016-10-31 03:24:20 +00:00Commented Oct 31, 2016 at 3:24
-
how could that be done in PHP?Nita– Nita2016-10-31 03:29:25 +00:00Commented Oct 31, 2016 at 3:29
-
Get the PHP to listen to POSTS from Javascript, and then use something like cURL to foward the message with your API key.AndrewL– AndrewL2016-10-31 03:30:44 +00:00Commented Oct 31, 2016 at 3:30
-
ok, let me invesigate this. Do you have maybe some usful link that could help me achiving this? Thanks for now.Nita– Nita2016-10-31 03:41:51 +00:00Commented Oct 31, 2016 at 3:41
-
Have a look at this davidwalsh.name/curl-post this example is a server forwarding the requests.AndrewL– AndrewL2016-10-31 20:13:01 +00:00Commented Oct 31, 2016 at 20:13
Add a comment
|