# API - external collections -localhost testing

**URL:** <https://forum.adalo.com/t/api-external-collections-localhost-testing/22231>\
**Category:** External Collections, Custom Actions & Collections\
**Created:** [January 19, 2022, 8:31am UTC](https://forum.adalo.com/t/api-external-collections-localhost-testing/22231 "2022-01-19T08:31:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BCH](https://avatars.discourse-cdn.com/v4/letter/b/f475e1/32.png) [@BCH](https://forum.adalo.com/u/BCH)\
**Post date:** [January 19, 2022, 8:31am UTC](https://forum.adalo.com/t/api-external-collections-localhost-testing/22231/1 "2022-01-19T08:31:18Z")

</div>

For testing pruposes i have to connect my Adalo app to my localhost API server.

Don’t seems to be possible to pull APIs request for localhost.

Iam getting the following message :  
[

### Contains references to disallowed domain names

]([Contains references to disallowed domain names](https://forum.adalo.com/t/contains-references-to-disallowed-domain-names/18656))

My question is how do we do solve that and beable to tests our API locally

Thanks

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/victor/32/2054_2.png) [@Victor](https://forum.adalo.com/u/Victor)\
**Post date:** [January 19, 2022, 2:47pm UTC](https://forum.adalo.com/t/api-external-collections-localhost-testing/22231/2 "2022-01-19T14:47:36Z")

</div>

Hi @BCH,

As far as I know, I don’t think you can use localhost as an API server.  
Please remember that all external collections’ requests go through Adalo backend anyway, so localhost isn’t an option.

Best regards, Victor.

---

<div class="post-metadata">

**Author:** ![BCH](https://avatars.discourse-cdn.com/v4/letter/b/f475e1/32.png) [@BCH](https://forum.adalo.com/u/BCH)\
**Post date:** [January 19, 2022, 5:16pm UTC](https://forum.adalo.com/t/api-external-collections-localhost-testing/22231/3 "2022-01-19T17:16:00Z")

</div>

For testing purposes i use localhost, works fine with postman.

Now i’ve bought the Adalo pro plan yesterday but cannot access\use the API for testing before deployment.

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/victor/32/2054_2.png) [@Victor](https://forum.adalo.com/u/Victor)\
**Post date:** [January 19, 2022, 5:20pm UTC](https://forum.adalo.com/t/api-external-collections-localhost-testing/22231/4 "2022-01-19T17:20:27Z")

</div>

Hello @BCH,

Of course you can use localhost with your own API server for testing purposes. But this works for local environment only.

What I was trying to explain that it won’t work with Adalo, as Adalo servers transfers all requests to the collections via itself.  
As Adalo servers are located in the Internet, they won’t be able to access your computer via localhost address.

Best regards, Victor.

---

<div class="post-metadata">

**Author:** ![BCH](https://avatars.discourse-cdn.com/v4/letter/b/f475e1/32.png) [@BCH](https://forum.adalo.com/u/BCH)\
**Post date:** [January 19, 2022, 8:22pm UTC](https://forum.adalo.com/t/api-external-collections-localhost-testing/22231/5 "2022-01-19T20:22:46Z")

</div>

Okey got it.

Thanks  
Badr
