# Allowed callback url per domain

**URL:** <https://community.auth0.com/t/allowed-callback-url-per-domain/58354>\
**Category:** Get Help\
**Created:** [February 23, 2021, 3:13pm UTC](https://community.auth0.com/t/allowed-callback-url-per-domain/58354 "2021-02-23T15:13:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![geoffrey.signorato](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/geoffrey.signorato/32/27785_2.png) [@geoffrey.signorato](https://community.auth0.com/u/geoffrey.signorato)\
**Post date:** [February 23, 2021, 3:13pm UTC](https://community.auth0.com/t/allowed-callback-url-per-domain/58354/1 "2021-02-23T15:13:23Z")

</div>

Is there a way to authorize the “Allowed callback url” per domain instead of per URL? Something like [domain.com/\*](http://domain.com/*) ?

---

<div class="post-metadata">

**Author:** ![geoffrey.signorato](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/geoffrey.signorato/32/27785_2.png) [@geoffrey.signorato](https://community.auth0.com/u/geoffrey.signorato)\
**Post date:** [February 23, 2021, 3:16pm UTC](https://community.auth0.com/t/allowed-callback-url-per-domain/58354/2 "2021-02-23T15:16:08Z")

</div>

Because for example right now, when a user login on my application, the URL is [domain.com/media/mediaID](http://domain.com/media/mediaID). But they are many different mediaId possible, and i can’t enter manually all the media url in the allowed callback fields.

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [February 23, 2021, 3:23pm UTC](https://community.auth0.com/t/allowed-callback-url-per-domain/58354/3 "2021-02-23T15:23:32Z")

</div>

Hi @geoffrey.signorato,

I believe this answer should help you: [Allowed Callback URLs ending with a wildcard - #2 by prashantT](https://community.auth0.com/t/allowed-callback-urls-ending-with-a-wildcard/7626/2)

You can use wildcards for subdomains, but not routes. As suggested in the solution, you can set up a single callback URL to cover all routes.

---

<div class="post-metadata">

**Author:** ![geoffrey.signorato](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/geoffrey.signorato/32/27785_2.png) [@geoffrey.signorato](https://community.auth0.com/u/geoffrey.signorato)\
**Post date:** [February 23, 2021, 3:56pm UTC](https://community.auth0.com/t/allowed-callback-url-per-domain/58354/5 "2021-02-23T15:56:05Z")

</div>

Thank you, very useful!  
Ideally i would not need a redirect at all. I’am using the auth0 lock library to show a modal on my page: [domain.com/media/id](http://domain.com/media/id). Once the user is logged, I can get the token via the on authenticated method.  
But right now, even though I set up redirect at false, i’am getting a 403 in the auth0 log saying this url is not in the allowed callback of the app, even though there is no redirect, does it make sense?

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [February 23, 2021, 8:15pm UTC](https://community.auth0.com/t/allowed-callback-url-per-domain/58354/6 "2021-02-23T20:15:01Z")

</div>

Yes, that makes sense!

It sounds like you might be running into a cross-origin authentication issue. You may need to configure a cross-origin verification page as described here (if you haven’t already): [https://auth0.com/docs/login/embedded-login/cross-origin-authentication#create-a-cross-origin-verification-page](https://auth0.com/docs/login/embedded-login/cross-origin-authentication#create-a-cross-origin-verification-page)

 ![screenshot-manage.auth0.com-2021.02.23-15_14_19](https://global.discourse-cdn.com/auth0/original/3X/1/d/1d9617b74ad95031d571c96c38ab54d3248cc61d.png)

---

<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:** [March 31, 2021, 6:42pm UTC](https://community.auth0.com/t/allowed-callback-url-per-domain/58354/7 "2021-03-31T18:42:04Z")

</div>

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