Select to view content in your preferred language

Are there any protections for hosting the client side API key on github?

351
1
10-06-2021 06:01 PM
gggg
by
New Contributor

I need to host my client side API key on github pages to share my project. except the API key will be publicly shown in the source code since it is a client side API key. Does ESRI have any protections for this case?

0 Kudos
1 Reply
Noah-Sager
Esri Regular Contributor

It's a good question @gggg. Here is our official documentation on the subject:

https://developers.arcgis.com/documentation/mapping-apis-and-services/security/security-best-practic...

In short, it's a good idea to limit your API key to consume only the services you require, and use the allowed referrer to limit usage to your app's URL. Also, you should monitor the API key's usage, and delete it when you're done, and/or rotate your API key as needed.

0 Kudos