# Support wildcard in "allowed user api auth redirects" setting

**URL:** https://meta.discourse.org/t/support-wildcard-in-allowed-user-api-auth-redirects-setting/104346
**Category:** Feature
**Created:** [December 15, 2018, 9:58am UTC](https://meta.discourse.org/t/support-wildcard-in-allowed-user-api-auth-redirects-setting/104346 "2018-12-15T09:58:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![davide.porrovecchio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davide.porrovecchio/32/119681_2.png) [@davide.porrovecchio](https://meta.discourse.org/u/davide.porrovecchio)
#### Post date: [December 15, 2018, 9:58am UTC](https://meta.discourse.org/t/support-wildcard-in-allowed-user-api-auth-redirects-setting/104346/1 "2018-12-15T09:58:19Z")

</div>

Hi,  
[here is a PR](https://github.com/discourse/discourse/pull/6779) for this new feature.

The use case is:

> I need to consume the Discourse APIs using User API Keys from JS in some pages reachable in a different location than the domain root. Instead of listing all the locations in the `allowed_user_api_auth_redirects` setting (which will be impossibile if I generate pages dynamically), I can use a wildcard to allow redirect to multiple pages: i.e. `www.example.com/site/*` .

Hope this can be helpful to other people!
