# Callback URL mismatch error for local dev

**URL:** <https://community.auth0.com/t/callback-url-mismatch-error-for-local-dev/124262>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [January 5, 2024, 6:12pm UTC](https://community.auth0.com/t/callback-url-mismatch-error-for-local-dev/124262 "2024-01-05T18:12:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![erebuskaimoros](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/erebuskaimoros/32/53707_2.png) [@erebuskaimoros](https://community.auth0.com/u/erebuskaimoros)\
**Post date:** [January 5, 2024, 6:12pm UTC](https://community.auth0.com/t/callback-url-mismatch-error-for-local-dev/124262/1 "2024-01-05T18:12:28Z")

</div>

I’ve looked at similar posts and can’t figure out what I’m doing wrong.

I’m just starting out on setting up auth0 for my project that I’m developing locally. I’ve followed the quickstart guide and as far as I can tell I’ve done things correctly. Any help would be appreciated.

Using React

 ![Screenshot 2024-01-05 at 12.10.59 PM](https://global.discourse-cdn.com/auth0/original/3X/1/e/1e3e560c00a7927881d1eada38c1de2d80e0b744.png)  
 ![Screenshot 2024-01-05 at 12.07.00 PM](https://global.discourse-cdn.com/auth0/original/3X/2/5/25830eaf5aa373a828324c74bf6217091c564bc0.png)  
 ![Screenshot 2024-01-05 at 12.07.21 PM](https://global.discourse-cdn.com/auth0/original/3X/e/b/eb946233573f8d3cff143dd5465caac641527d90.png)

---

<div class="post-metadata">

**Author:** ![iamkc](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@iamkc](https://community.auth0.com/u/iamkc)\
**Post date:** [January 5, 2024, 6:29pm UTC](https://community.auth0.com/t/callback-url-mismatch-error-for-local-dev/124262/2 "2024-01-05T18:29:26Z")

</div>

You’ve configured the scheme of the URI as `https` in `https://localhost:3001` in your Auth0 configuration. With localhost, it’s typically `http`. Can you check if that’s the issue?

---

<div class="post-metadata">

**Author:** ![erebuskaimoros](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/erebuskaimoros/32/53707_2.png) [@erebuskaimoros](https://community.auth0.com/u/erebuskaimoros)\
**Post date:** [January 5, 2024, 6:36pm UTC](https://community.auth0.com/t/callback-url-mismatch-error-for-local-dev/124262/3 "2024-01-05T18:36:12Z")

</div>

So I was just using http, but then when I went to setup auth0 it gave me an error saying that it required https. Which I then think I set up correctly. At least my app loads at [https://localhost:3001](https://localhost:3001)

 ![Screenshot 2024-01-05 at 12.35.22 PM](https://global.discourse-cdn.com/auth0/original/3X/8/1/8184e37a2d27a0316221feefce0c7fa54ecb1aa6.png)

I’m a novice dev so most of this is new to me

---

<div class="post-metadata">

**Author:** ![mraible](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mraible/32/32776_2.png) [@mraible](https://community.auth0.com/u/mraible)\
**Post date:** [January 5, 2024, 6:38pm UTC](https://community.auth0.com/t/callback-url-mismatch-error-for-local-dev/124262/4 "2024-01-05T18:38:04Z")

</div>

You should be able to use `http` when using localhost. When you get the redirect UIR error, there’s a yellow box in the bottom left corner you can click and expand to see the URL you’re sending. It’ll also be a parameter in the URL if you look at your address bar.

---

<div class="post-metadata">

**Author:** ![erebuskaimoros](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/erebuskaimoros/32/53707_2.png) [@erebuskaimoros](https://community.auth0.com/u/erebuskaimoros)\
**Post date:** [January 5, 2024, 6:40pm UTC](https://community.auth0.com/t/callback-url-mismatch-error-for-local-dev/124262/5 "2024-01-05T18:40:43Z")

</div>

Okay, let me undo the https and try again with http.

Thank you

---

<div class="post-metadata">

**Author:** ![erebuskaimoros](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/erebuskaimoros/32/53707_2.png) [@erebuskaimoros](https://community.auth0.com/u/erebuskaimoros)\
**Post date:** [January 5, 2024, 6:46pm UTC](https://community.auth0.com/t/callback-url-mismatch-error-for-local-dev/124262/6 "2024-01-05T18:46:03Z")

</div>

Okay so when I use http

 ![Screenshot 2024-01-05 at 12.44.55 PM](https://global.discourse-cdn.com/auth0/original/3X/5/4/54f913da925a9e5a7f44a9fb6cf1fa8a342ee60b.png)  
I get this error, which is what made me implement https  
 ![Screenshot 2024-01-05 at 12.44.39 PM](https://global.discourse-cdn.com/auth0/original/3X/3/b/3bf3b281241d8ce98a0cec73407dc9608f327b12.png)

---

<div class="post-metadata">

**Author:** ![erebuskaimoros](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/erebuskaimoros/32/53707_2.png) [@erebuskaimoros](https://community.auth0.com/u/erebuskaimoros)\
**Post date:** [January 5, 2024, 7:14pm UTC](https://community.auth0.com/t/callback-url-mismatch-error-for-local-dev/124262/7 "2024-01-05T19:14:14Z")

</div>

Don’t know how notifs work on here, but in case my other reply didn’t ping you, I got a different error when trying to use just http

---

<div class="post-metadata">

**Author:** ![mraible](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mraible/32/32776_2.png) [@mraible](https://community.auth0.com/u/mraible)\
**Post date:** [January 5, 2024, 7:27pm UTC](https://community.auth0.com/t/callback-url-mismatch-error-for-local-dev/124262/8 "2024-01-05T19:27:25Z")

</div>

Is this “Payload validation error” in the Auth0 dashboard or from your app? I only ask because I’ve used many `http://localhost` callback URLs with other frameworks, including Angular, React, Vue, Express, Spring Boot, Quarkus, and Micronaut.

---

<div class="post-metadata">

**Author:** ![erebuskaimoros](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/erebuskaimoros/32/53707_2.png) [@erebuskaimoros](https://community.auth0.com/u/erebuskaimoros)\
**Post date:** [January 5, 2024, 7:29pm UTC](https://community.auth0.com/t/callback-url-mismatch-error-for-local-dev/124262/9 "2024-01-05T19:29:38Z")

</div>

In the auth0 dashboard, in the settings tab of the Application page. That error pops up when I click save changes after updating the 3 URL forms. I was just following the quickstart guide.

---

<div class="post-metadata">

**Author:** ![mraible](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mraible/32/32776_2.png) [@mraible](https://community.auth0.com/u/mraible)\
**Post date:** [January 5, 2024, 7:52pm UTC](https://community.auth0.com/t/callback-url-mismatch-error-for-local-dev/124262/10 "2024-01-05T19:52:24Z")

</div>

I was able to reproduce this problem by putting `http://localhost:4200` in the **Application Login URI** input field and saving changes. This is not a required field and I’ve never used it myself. You can leave it blank.

---

<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:** [January 19, 2024, 7:52pm UTC](https://community.auth0.com/t/callback-url-mismatch-error-for-local-dev/124262/11 "2024-01-19T19:52:42Z")

</div>

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