# Add allowed domains in Amity config

**URL:** <https://forum.social.plus/t/add-allowed-domains-in-amity-config/228>\
**Category:** Web\
**Tags:** technical\
**Created:** [July 22, 2021, 7:13am UTC](https://forum.social.plus/t/add-allowed-domains-in-amity-config/228 "2021-07-22T07:13:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wzulfikar](https://avatars.discourse-cdn.com/v4/letter/w/a698b9/32.png) [@wzulfikar](https://forum.social.plus/u/wzulfikar)\
**Post date:** [July 22, 2021, 7:13am UTC](https://forum.social.plus/t/add-allowed-domains-in-amity-config/228/1 "2021-07-22T07:13:05Z")

</div>

Is there any configuration where we limit the use of web sdk to certain domain? For example, I’d like to limit my api key to be used from localhost and [mydomain.com](http://mydomain.com).

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [July 22, 2021, 8:22am UTC](https://forum.social.plus/t/add-allowed-domains-in-amity-config/228/2 "2021-07-22T08:22:52Z")

</div>

Hi @wzulfikar , thank you for your inquiry. Our team is checking the information and update you soon.

---

<div class="post-metadata">

**Author:** ![touchaponk](https://avatars.discourse-cdn.com/v4/letter/t/ec9cab/32.png) [@touchaponk](https://forum.social.plus/u/touchaponk)\
**Post date:** [July 22, 2021, 8:29am UTC](https://forum.social.plus/t/add-allowed-domains-in-amity-config/228/3 "2021-07-22T08:29:54Z")

</div>

Hi @wzulfikar - it’s not possible to limit the domain name - however you can secure your web sdk by enabling secure mode and establish a server-to-server connection to get auth token - please see [Security - Amity Docs](https://docs.amity.co/console/settings/security) for more info
