# Callback URL mismatch http and https. “is not in the list of allowed callback URLs”

**URL:** <https://community.auth0.com/t/callback-url-mismatch-http-and-https-is-not-in-the-list-of-allowed-callback-urls/84252>\
**Category:** Get Help\
**Tags:** callback-urls, callback\
**Created:** [May 30, 2022, 8:12am UTC](https://community.auth0.com/t/callback-url-mismatch-http-and-https-is-not-in-the-list-of-allowed-callback-urls/84252 "2022-05-30T08:12:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fandorine77](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fandorine77/32/25384_2.png) [@fandorine77](https://community.auth0.com/u/fandorine77)\
**Post date:** [May 30, 2022, 8:12am UTC](https://community.auth0.com/t/callback-url-mismatch-http-and-https-is-not-in-the-list-of-allowed-callback-urls/84252/1 "2022-05-30T08:12:15Z")

</div>

Hi there!

I have a Blazor Server app which I’ve deployed to Heroku via Docker. This is my app’s url [https://my-app.herokuapp.com](https://my-app.herokuapp.com). In Allowed Callback URLs in my Auth0 app settings I have this callback url: [https://my-app.herokuapp.com/callback](https://my-app.herokuapp.com/callback). But when I try to login I get this error message: “Callback URL mismatch. [http://my-app.herokuapp.com/callback](http://my-app.herokuapp.com/callback) is not in the list of allowed callback URLs”. So I don’t understand why actual url has http, not https and how to fix this issue.  
 ![Auth0](https://global.discourse-cdn.com/auth0/original/3X/9/2/92123b329a7bcb10a4414e2b2177c255a6190f9e.png)

Will be grateful for any help.

---

<div class="post-metadata">

**Author:** ![mj.phong](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mj.phong/32/37722_2.png) [@mj.phong](https://community.auth0.com/u/mj.phong)\
**Post date:** [May 31, 2022, 6:46am UTC](https://community.auth0.com/t/callback-url-mismatch-http-and-https-is-not-in-the-list-of-allowed-callback-urls/84252/2 "2022-05-31T06:46:01Z")

</div>

Hi **fandorine**.  
Have you configured the custom domain for your App? Just double check, I believe that it’ve done already.  
As far as I know, the callback Url is “https://[your custom domain]/ **auth0** /callback” normally. The callback URL is pre-programmed in the integration package that Auth0 guides us, you can refer to Application \> Quick Start (pick the technology you are using).  
Follow up the Auth0 guide, it works well in my side, even with the localhost environment (pay attention on the pattern of callback URL)  
In case you have the optimization callback URL, you should have the implementation in your end.

---

<div class="post-metadata">

**Author:** ![fandorine77](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fandorine77/32/25384_2.png) [@fandorine77](https://community.auth0.com/u/fandorine77)\
**Post date:** [June 1, 2022, 6:50am UTC](https://community.auth0.com/t/callback-url-mismatch-http-and-https-is-not-in-the-list-of-allowed-callback-urls/84252/3 "2022-06-01T06:50:29Z")

</div>

Thanks for answer @mj.phong. First of all I don’t have access to set custom domain for my Auth0 app and I don’t get how it can help me with this problem. Secondly, it works perfectly fine with localhost (you can see localhost callback in the image above. I have no idea why I get HTTP protocol callback when my app on Heroku has HTTPS protocol.

---

<div class="post-metadata">

**Author:** ![fandorine77](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fandorine77/32/25384_2.png) [@fandorine77](https://community.auth0.com/u/fandorine77)\
**Post date:** [June 7, 2022, 3:14pm UTC](https://community.auth0.com/t/callback-url-mismatch-http-and-https-is-not-in-the-list-of-allowed-callback-urls/84252/4 "2022-06-07T15:14:01Z")

</div>

If I’m not mistaked, the problem was with url redirect process in Blazor, not Auth0 or Heroku. Here is the link [asp.net core - How to set redirect\_uri protocol to HTTPS in Azure Web Apps - Stack Overflow](https://stackoverflow.com/questions/49189883/how-to-set-redirect-uri-protocol-to-https-in-azure-web-apps), which has solution for my case.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 28, 2022, 10:28am UTC](https://community.auth0.com/t/callback-url-mismatch-http-and-https-is-not-in-the-list-of-allowed-callback-urls/84252/5 "2022-07-28T10:28:48Z")

</div>


