# How to develop an Auth0 rule locally with Serveo.net (works with ngrok)

**URL:** <https://community.auth0.com/t/how-to-develop-an-auth0-rule-locally-with-serveo-net-works-with-ngrok/43232>\
**Category:** Get Help\
**Tags:** rules, auth0\
**Created:** [May 19, 2020, 6:40am UTC](https://community.auth0.com/t/how-to-develop-an-auth0-rule-locally-with-serveo-net-works-with-ngrok/43232 "2020-05-19T06:40:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexab](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexab/32/13403_2.png) [@alexab](https://community.auth0.com/u/alexab)\
**Post date:** [May 19, 2020, 6:40am UTC](https://community.auth0.com/t/how-to-develop-an-auth0-rule-locally-with-serveo-net-works-with-ngrok/43232/1 "2020-05-19T06:40:34Z")

</div>

Hi everyone.

I am trying to develop a rule in Auth0, that will ping our API. While developing this, it would be great if I could expose my local server (then I don’t have to deploy my code to test it). To do this I use [serveo.net](http://serveo.net/).

Testing this out with Postman works great, serveo redirects to my local server.

However when trying this from Auth0 with a rule like this:

```auto
const axios = require('axios@0.19.2');
const axiosSettings = {
        method: 'post',
        url: '<serveo-url>',
        data: {email: user.email},
        headers: {'content-type': 'application/json'},
        timeout: 15000
 };
axios(axiosSettings)
.then(res => callback(null, user, context))
.catch(err => callback(null, user, context));

```

I get the following error:

`ERROR: Max redirects exceeded.`

When checking the Serveo logs, I can see that many requests are forwarded.

Can you help me out here 🙋‍♂️ ?

**UPDATE**

Tried using [ngrok](https://ngrok.com/) as an alternative to serveo, and it worked with no issues 🔥!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [May 21, 2020, 5:52pm UTC](https://community.auth0.com/t/how-to-develop-an-auth0-rule-locally-with-serveo-net-works-with-ngrok/43232/3 "2020-05-21T17:52:15Z")

</div>

Thanks for providing a solution! Marking this solved in OP.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [June 5, 2020, 5:52pm UTC](https://community.auth0.com/t/how-to-develop-an-auth0-rule-locally-with-serveo-net-works-with-ngrok/43232/4 "2020-06-05T17:52:17Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
