Hiding API Keys

1556
2
09-25-2016 04:14 PM
HamishKingsbury2
New Contributor II

Hi All

I'm currently developing a headless custom JS widget for WAB that makes use of a few third party APIs. These require API keys. I was wondering how I should hide these keys so others can't use them. I did a quick google search but would like to hear what GIS developers might suggest

Cheers

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Hamish,


  And JavaScript code or json files you put the API key in can be read. The best you can do is minify/uglify your js code to make less readable.

0 Kudos
HamishKingsbury2
New Contributor II

That's one solution and will most likely be my approach. I'll keep looking and see if I can come up with anything more secure

0 Kudos